Ignore:
Timestamp:
2015-07-05T02:55:10+02:00 (9 years ago)
Author:
Don-vip
Message:

findbugs

File:
1 edited

Legend:

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

    r8570 r8571  
    7373    };
    7474
    75     private class TileMatrix {
     75    private static class TileMatrix {
    7676        String identifier;
    7777        double scaleDenominator;
     
    8181    }
    8282
    83     private class TileMatrixSet {
     83    private static class TileMatrixSet {
    8484        SortedSet<TileMatrix> tileMatrix = new TreeSet<>(new Comparator<TileMatrix>() {
    8585            @Override
     
    9393    }
    9494
    95     private class Layer {
     95    private static class Layer {
    9696        String format;
    9797        String name;
     
    124124    }
    125125
    126     private final class SelectLayerDialog extends ExtendedDialog {
     126    private static final class SelectLayerDialog extends ExtendedDialog {
    127127        private Layer[] layers;
    128128        private JList<String> list;
     
    207207        builderFactory.setNamespaceAware(false);
    208208        DocumentBuilder builder = null;
    209         byte[] data = {};
    210209        InputStream in = new CachedFile(baseUrl).
    211210                setHttpHeaders(headers).
     
    215214        try {
    216215            builder = builderFactory.newDocumentBuilder();
    217             data = Utils.readBytesFromStream(in);
     216            byte[] data = Utils.readBytesFromStream(in);
    218217            if (data == null || data.length == 0) {
    219218                throw new IllegalArgumentException("Could not read data from: " + baseUrl);
Note: See TracChangeset for help on using the changeset viewer.