Changeset 8571 in josm


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

findbugs

Location:
trunk/src/org/openstreetmap/josm
Files:
2 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);
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r8570 r8571  
    10141014                    g.drawLine(0, p.y, mv.getWidth(), p.y);
    10151015                }
    1016                 yCursor = t.getYtile();
    1017             }
    1018             // This draws the vertical lines for the entire
    1019             // column. Only draw them for the top tile in
    1020             // the column.
     1016                //yCursor = t.getYtile();
     1017            }
     1018            // This draws the vertical lines for the entire column. Only draw them for the top tile in the column.
    10211019            if (xCursor < t.getXtile()) {
    10221020                if (t.getXtile() % 32 == 0) {
     
    10261024                    g.drawLine(p.x, 0, p.x, mv.getHeight());
    10271025                }
    1028                 xCursor = t.getXtile();
     1026                //xCursor = t.getXtile();
    10291027            }
    10301028        }
Note: See TracChangeset for help on using the changeset viewer.