Changeset 34801 in osm for applications/editors/josm/plugins/cadastre-fr/src
- Timestamp:
- 2019-01-01T14:44:20+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/download/CadastreDownloadTask.java
r34711 r34801 9 9 import java.util.List; 10 10 import java.util.Objects; 11 import java.util.Optional; 11 12 import java.util.concurrent.ExecutionException; 12 13 import java.util.concurrent.Future; … … 111 112 112 113 @Override 113 protected CadastreDataLayer createNewLayer( StringlayerName) {114 String realLayerName = layerName != null ? layerName: url.substring(url.lastIndexOf('/')+1);114 protected CadastreDataLayer createNewLayer(DataSet dataset, Optional<String> layerName) { 115 String realLayerName = layerName.isPresent() ? layerName.get() : url.substring(url.lastIndexOf('/')+1); 115 116 if (realLayerName == null || realLayerName.isEmpty()) { 116 117 realLayerName = settings.getLayerName();
Note:
See TracChangeset
for help on using the changeset viewer.