- Timestamp:
- 2018-10-19T01:20:02+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r14347 r14350 270 270 * {@link #generateLayerName()} instead. 271 271 * 272 * @param d atasetthe dataset on which the layer is based, must be non-null272 * @param ds the dataset on which the layer is based, must be non-null 273 273 * @param layerName the name of the new layer, must be either non-blank or non-present 274 274 * @return a new instance of {@link OsmDataLayer} constructed with the given arguments 275 275 * @since 14347 276 276 */ 277 protected OsmDataLayer createNewLayer(final DataSet d ataset, final Optional<String> layerName) {277 protected OsmDataLayer createNewLayer(final DataSet ds, final Optional<String> layerName) { 278 278 if (layerName.filter(Utils::isStripEmpty).isPresent()) { 279 279 throw new IllegalArgumentException("Blank layer name!"); 280 280 } 281 281 return new OsmDataLayer( 282 Objects.requireNonNull(d ataset, "dataset parameter"),282 Objects.requireNonNull(ds, "dataset parameter"), 283 283 layerName.orElseGet(this::generateLayerName), 284 284 null
Note:
See TracChangeset
for help on using the changeset viewer.