- Timestamp:
- 2021-08-22T13:52:08+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/vectortile/mapbox/MVTTile.java
r17867 r18156 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.imagery.vectortile.mapbox; 3 4 import java.awt.image.BufferedImage; 5 import java.io.IOException; 6 import java.io.InputStream; 7 import java.util.Collection; 8 import java.util.HashSet; 9 import java.util.List; 10 import java.util.Objects; 11 import java.util.stream.Collectors; 3 12 4 13 import org.openstreetmap.gui.jmapviewer.Tile; … … 13 22 import org.openstreetmap.josm.tools.ListenerList; 14 23 import org.openstreetmap.josm.tools.Logging; 15 16 import java.awt.image.BufferedImage;17 import java.io.IOException;18 import java.io.InputStream;19 import java.util.Collection;20 import java.util.HashSet;21 import java.util.List;22 import java.util.stream.Collectors;23 24 24 25 /** … … 68 69 return mvtLayer; 69 70 }).collect(Collectors.toCollection(HashSet::new)); 70 this.extent = layers.stream(). map(Layer::getExtent).max(Integer::compare).orElse(Layer.DEFAULT_EXTENT);71 this.extent = layers.stream().filter(Objects::nonNull).mapToInt(Layer::getExtent).max().orElse(Layer.DEFAULT_EXTENT); 71 72 if (this.getData() != null) { 72 73 this.finishLoading();
Note:
See TracChangeset
for help on using the changeset viewer.