Changeset 8571 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
- Timestamp:
- 2015-07-05T02:55:10+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r8570 r8571 73 73 }; 74 74 75 private class TileMatrix {75 private static class TileMatrix { 76 76 String identifier; 77 77 double scaleDenominator; … … 81 81 } 82 82 83 private class TileMatrixSet {83 private static class TileMatrixSet { 84 84 SortedSet<TileMatrix> tileMatrix = new TreeSet<>(new Comparator<TileMatrix>() { 85 85 @Override … … 93 93 } 94 94 95 private class Layer {95 private static class Layer { 96 96 String format; 97 97 String name; … … 124 124 } 125 125 126 private final class SelectLayerDialog extends ExtendedDialog {126 private static final class SelectLayerDialog extends ExtendedDialog { 127 127 private Layer[] layers; 128 128 private JList<String> list; … … 207 207 builderFactory.setNamespaceAware(false); 208 208 DocumentBuilder builder = null; 209 byte[] data = {};210 209 InputStream in = new CachedFile(baseUrl). 211 210 setHttpHeaders(headers). … … 215 214 try { 216 215 builder = builderFactory.newDocumentBuilder(); 217 data = Utils.readBytesFromStream(in);216 byte[] data = Utils.readBytesFromStream(in); 218 217 if (data == null || data.length == 0) { 219 218 throw new IllegalArgumentException("Could not read data from: " + baseUrl);
Note:
See TracChangeset
for help on using the changeset viewer.