Ignore:
Timestamp:
2015-06-25T00:05:23+02:00 (9 years ago)
Author:
Don-vip
Message:

see #11255 - checkstyle/findbugs

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/WMSLayerImporter.java

    r8526 r8530  
    4141    }
    4242
    43 
    4443    @Override
    4544    public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
     
    6160                double pixelPerDegree = ois.readDouble();
    6261
    63                 String name = (String)ois.readObject();
    64                 String extendedUrl = (String)ois.readObject();
     62                String name = (String) ois.readObject();
     63                String extendedUrl = (String) ois.readObject();
    6564
    6665                info = new ImageryInfo(name);
     
    6867                info.setPixelPerDegree(pixelPerDegree);
    6968                info.setTileSize(imageSize);
    70             } else if (sfv == WMSLayerExporter.CURRENT_FILE_VERSION){
     69            } else if (sfv == WMSLayerExporter.CURRENT_FILE_VERSION) {
    7170                zoomTo = (EastNorth) ois.readObject();
    7271
    7372                @SuppressWarnings("unchecked")
    7473                ImageryPreferenceEntry entry = Preferences.deserializeStruct(
    75                         (Map<String, String>)ois.readObject(),
     74                        (Map<String, String>) ois.readObject(),
    7675                        ImageryPreferenceEntry.class);
    7776                info = new ImageryInfo(entry);
  • trunk/src/org/openstreetmap/josm/io/session/ImagerySessionImporter.java

    r8526 r8530  
    4949            AbstractTileSourceLayer tsLayer = (AbstractTileSourceLayer) layer;
    5050            if (attributes.containsKey("automatic-downloading")) {
    51                 tsLayer.autoLoad = new Boolean(attributes.get("automatic-downloading")).booleanValue();
     51                tsLayer.autoLoad = Boolean.valueOf(attributes.get("automatic-downloading"));
    5252            }
    5353
    5454            if (attributes.containsKey("automatically-change-resolution")) {
    55                 tsLayer.autoZoom = new Boolean(attributes.get("automatically-change-resolution")).booleanValue();
     55                tsLayer.autoZoom = Boolean.valueOf(attributes.get("automatically-change-resolution"));
    5656            }
    5757
    5858            if (attributes.containsKey("show-errors")) {
    59                 tsLayer.showErrors = new Boolean(attributes.get("show-errors")).booleanValue();
     59                tsLayer.showErrors = Boolean.valueOf(attributes.get("show-errors"));
    6060            }
    6161        }
Note: See TracChangeset for help on using the changeset viewer.