Changeset 13043 in josm


Ignore:
Timestamp:
2017-10-27T00:59:01+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15474 - fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/OpenChangesetPopupMenu.java

    r13041 r13043  
    5656            new ChangesetViewerEntry(tr("Open {0}", "OSMCha (OSM Changeset Analyzer)"), "https://osmcha.mapbox.com/changesets/{0}"),
    5757            new ChangesetViewerEntry(tr("Open {0}", "OSM History Viewer"), "http://osmhv.openstreetmap.de/changeset.jsp?id={0}"),
    58             new ChangesetViewerEntry(tr("Open {0}", "WhoDidIt (OSM Changeset Analyzer)"), "http://simon04.dev.openstreetmap.org/whodidit/index.html?changeset={0}&show=1")
     58            new ChangesetViewerEntry(tr("Open {0}", "WhoDidIt (OSM Changeset Analyzer)"),
     59                    "http://simon04.dev.openstreetmap.org/whodidit/index.html?changeset={0}&show=1")
    5960    );
    6061
     
    6364     */
    6465    public static class ChangesetViewerEntry {
     66        /** Name to be displayed in popup menu */
    6567        @StructEntry
    6668        public String name;
     69        /** Templated service url. <code>{0}</code> will be replaced by changeset id */
    6770        @StructEntry
    6871        public String url;
     
    8083
    8184        Action toAction(final long changesetId) {
    82             final String url = MessageFormat.format(this.url, Long.toString(changesetId));
    83             return new OpenBrowserAction(name, url);
     85            return new OpenBrowserAction(name, MessageFormat.format(this.url, Long.toString(changesetId)));
    8486        }
    8587    }
Note: See TracChangeset for help on using the changeset viewer.