Ignore:
Timestamp:
2020-01-18T14:13:56+01:00 (4 years ago)
Author:
simon04
Message:

Java 8: use String.join

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r15228 r15716  
    352352                + "FORMAT=" + format + ((imageFormatHasTransparency(format) && transparent) ? "&TRANSPARENT=TRUE" : "")
    353353                + "&VERSION=" + this.version + "&" + SERVICE_WMS + "&REQUEST=GetMap&LAYERS="
    354                 + selectedLayers.stream().collect(Collectors.joining(","))
     354                + String.join(",", selectedLayers)
    355355                + "&STYLES="
    356                 + (selectedStyles != null ? Utils.join(",", selectedStyles) : "")
     356                + (selectedStyles != null ? String.join(",", selectedStyles) : "")
    357357                + "&"
    358358                + (belowWMS130() ? "SRS" : "CRS")
Note: See TracChangeset for help on using the changeset viewer.