Ignore:
Timestamp:
2014-10-04T17:28:45+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix various compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/modules/fr.lemans/src/org/openstreetmap/josm/plugins/opendata/modules/fr/lemans/datasets/LeMansDataSetHandler.java

    r30340 r30701  
    7575        @Override
    7676        public List<Pair<String, URL>> getDataURLs() {
    77                 List<Pair<String, URL>> result = new ArrayList<Pair<String,URL>>();
     77                List<Pair<String, URL>> result = new ArrayList<>();
    7878                try {
    79                         if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<String, URL>(getName() + " (KMZ)", new URL(PORTAL + "download.do?uuid=" + kmzUuid)));
    80                         if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<String, URL>(getName() + " (SHP)", new URL(PORTAL + "download.do?uuid=" + shpUuid)));
     79                        if (kmzUuid != null && !kmzUuid.isEmpty()) result.add(new Pair<>(getName() + " (KMZ)", new URL(PORTAL + "download.do?uuid=" + kmzUuid)));
     80                        if (shpUuid != null && !shpUuid.isEmpty()) result.add(new Pair<>(getName() + " (SHP)", new URL(PORTAL + "download.do?uuid=" + shpUuid)));
    8181                } catch (MalformedURLException e) {
    8282                        e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.