Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (4 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r18911 r19050  
    7474import org.openstreetmap.josm.tools.CheckParameterUtil;
    7575import org.openstreetmap.josm.tools.Logging;
    76 import org.openstreetmap.josm.tools.Utils;
    7776
    7877/**
     
    113112    private int cachedTileSize = -1;
    114113
    115     private static class TileMatrix {
     114    private static final class TileMatrix {
    116115        private String identifier;
    117116        private double scaleDenominator;
     
    123122    }
    124123
    125     private static class TileMatrixSetBuilder {
     124    private static final class TileMatrixSetBuilder {
    126125        // sorted by zoom level
    127126        SortedSet<TileMatrix> tileMatrix = new TreeSet<>((o1, o2) -> -1 * Double.compare(o1.scaleDenominator, o2.scaleDenominator));
     
    194193    }
    195194
    196     private static class Dimension {
     195    private static final class Dimension {
    197196        private String identifier;
    198197        private String defaultValue;
     
    454453                setCachingStrategy(CachedFile.CachingStrategy.IfModifiedSince).
    455454                getInputStream()) {
    456             byte[] data = Utils.readBytesFromStream(in);
     455            byte[] data = in.readAllBytes();
    457456            if (data.length == 0) {
    458457                cf.clear();
Note: See TracChangeset for help on using the changeset viewer.