Ignore:
Timestamp:
2013-05-04T03:30:57+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8655 - Removed unecessary toString() calls on Strings (patch by Skyman)

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

Legend:

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

    r5915 r5923  
    222222    }
    223223
     224    /**
     225     * Constructs a new {@code HelpBrowser}.
     226     */
    224227    public HelpBrowser() {
    225228        reader = new HelpContentReader(HelpUtil.getWikiBaseUrl());
     
    386389                                + "This is most likely due to a network problem, please check<br>"
    387390                                + "your internet connection</html>",
    388                                 url.toString()
     391                                url
    389392                        ),
    390393                        tr("Failed to open URL"),
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowserHistory.java

    r3083 r5923  
    5252        boolean add=true;
    5353
    54         if (historyPos >= 0 && historyPos < history.size() && history.get(historyPos).toString().equals(url.toString())) {
     54        if (historyPos >= 0 && historyPos < history.size() && history.get(historyPos).equals(url.toString())) {
    5555            add = false;
    5656        } else if (historyPos == history.size() -1) {
     
    6565        if(add)
    6666        {
    67           history.add(url);
    68           historyPos = history.size()-1;
     67            history.add(url);
     68            historyPos = history.size()-1;
    6969        }
    7070        setChanged();
Note: See TracChangeset for help on using the changeset viewer.