Ignore:
Timestamp:
2019-01-01T14:44:20+01:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14347

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  
    99import java.util.List;
    1010import java.util.Objects;
     11import java.util.Optional;
    1112import java.util.concurrent.ExecutionException;
    1213import java.util.concurrent.Future;
     
    111112
    112113        @Override
    113         protected CadastreDataLayer createNewLayer(String layerName) {
    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);
    115116            if (realLayerName == null || realLayerName.isEmpty()) {
    116117                realLayerName = settings.getLayerName();
Note: See TracChangeset for help on using the changeset viewer.