Ignore:
Timestamp:
2015-05-17T03:24:57+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - remove useless calls to toString()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/WebMarker.java

    r8056 r8376  
    2424 *
    2525 * @author Frederik Ramm
    26  *
     26 * @since 200
    2727 */
    2828public class WebMarker extends ButtonMarker {
     
    3636    }
    3737
    38     @Override public void actionPerformed(ActionEvent ev) {
     38    @Override
     39    public void actionPerformed(ActionEvent ev) {
    3940        String error = OpenBrowser.displayUrl(webUrl.toString());
    4041        if (error != null) {
     
    4243            new Notification(
    4344                    "<b>" + tr("There was an error while trying to display the URL for this marker") + "</b><br>" +
    44                                   tr("(URL was: ") + webUrl.toString() + ")" + "<br>" + error)
     45                                  tr("(URL was: ") + webUrl + ")" + "<br>" + error)
    4546                    .setIcon(JOptionPane.ERROR_MESSAGE)
    4647                    .setDuration(Notification.TIME_LONG)
Note: See TracChangeset for help on using the changeset viewer.