Changeset 19050 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r18911 r19050 74 74 import org.openstreetmap.josm.tools.CheckParameterUtil; 75 75 import org.openstreetmap.josm.tools.Logging; 76 import org.openstreetmap.josm.tools.Utils;77 76 78 77 /** … … 113 112 private int cachedTileSize = -1; 114 113 115 private static class TileMatrix {114 private static final class TileMatrix { 116 115 private String identifier; 117 116 private double scaleDenominator; … … 123 122 } 124 123 125 private static class TileMatrixSetBuilder {124 private static final class TileMatrixSetBuilder { 126 125 // sorted by zoom level 127 126 SortedSet<TileMatrix> tileMatrix = new TreeSet<>((o1, o2) -> -1 * Double.compare(o1.scaleDenominator, o2.scaleDenominator)); … … 194 193 } 195 194 196 private static class Dimension {195 private static final class Dimension { 197 196 private String identifier; 198 197 private String defaultValue; … … 454 453 setCachingStrategy(CachedFile.CachingStrategy.IfModifiedSince). 455 454 getInputStream()) { 456 byte[] data = Utils.readBytesFromStream(in);455 byte[] data = in.readAllBytes(); 457 456 if (data.length == 0) { 458 457 cf.clear();
Note:
See TracChangeset
for help on using the changeset viewer.