Ignore:
Timestamp:
2013-10-04T03:27:01+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Avoid commented-out lines of code, javadoc

Location:
trunk/src/org/openstreetmap/josm/gui/help
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r6248 r6296  
    471471    class ReloadAction extends AbstractAction {
    472472        public ReloadAction() {
    473             //putValue(NAME, tr("Reload"));
    474473            putValue(SHORT_DESCRIPTION, tr("Reload the current help page"));
    475474            putValue(SMALL_ICON, ImageProvider.get("dialogs", "refresh"));
     
    487486            this.history = history;
    488487            history.addObserver(this);
    489             //putValue(NAME, tr("Back"));
    490488            putValue(SHORT_DESCRIPTION, tr("Go to the previous page"));
    491489            putValue(SMALL_ICON, ImageProvider.get("help", "previous"));
     
    508506            this.history = history;
    509507            history.addObserver(this);
    510             //putValue(NAME, tr("Forward"));
    511508            putValue(SHORT_DESCRIPTION, tr("Go to the next page"));
    512509            putValue(SMALL_ICON, ImageProvider.get("help", "next"));
     
    526523    class HomeAction extends AbstractAction  {
    527524        public HomeAction() {
    528             //putValue(NAME, tr("Home"));
    529525            putValue(SHORT_DESCRIPTION, tr("Go to the JOSM help home page"));
    530526            putValue(SMALL_ICON, ImageProvider.get("help", "home"));
  • trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java

    r6143 r6296  
    119119        if(ret == null)
    120120            return ret;
    121         ret = "/" + ret + Main.pref.get("help.pathhelp", "/Help").replaceAll("^\\/+", ""); // remove leading /;
     121        ret = "/" + ret + Main.pref.get("help.pathhelp", "/Help").replaceAll("^\\/+", ""); // remove leading /
    122122        return ret.replaceAll("\\/+", "\\/"); // collapse sequences of //
    123123    }
Note: See TracChangeset for help on using the changeset viewer.