Ignore:
Timestamp:
2016-03-16T01:17:59+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - fix various issues

Location:
trunk/src/org/openstreetmap/josm/data
Files:
7 edited

Legend:

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

    r9991 r10000  
    274274    }
    275275
    276     private boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) {
     276    private static boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) {
    277277        if (iiA == null)
    278278            return false;
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r9902 r10000  
    293293        XMLInputFactory factory = XMLInputFactory.newFactory();
    294294        // do not try to load external entities, nor validate the XML
    295         factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
    296         factory.setProperty(XMLInputFactory.IS_VALIDATING, false);
    297         factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
     295        factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.FALSE);
     296        factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
     297        factory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE);
    298298
    299299        try (CachedFile cf = new CachedFile(baseUrl); InputStream in = cf.setHttpHeaders(headers).
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r9978 r10000  
    391391    }
    392392
    393     private Polygon buildPolygon(Point center, int radius, int sides) {
     393    private static Polygon buildPolygon(Point center, int radius, int sides) {
    394394        return buildPolygon(center, radius, sides, 0.0);
    395395    }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java

    r8870 r10000  
    189189    }
    190190
    191     private void processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) {
     191    private static void processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) {
    192192        if (event instanceof NodeMovedEvent || event instanceof WayNodesChangedEvent) {
    193193            dispatchEvent(event, r, maps);
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r9790 r10000  
    571571        }
    572572        if (parameters.containsKey(Param.no_off.key) || parameters.containsKey(Param.no_uoff.key)) {
    573             projParams.no_off = true;
     573            projParams.no_off = Boolean.TRUE;
    574574        }
    575575        proj.initialize(projParams);
     
    713713    /**
    714714     * Factor to convert units of east/north coordinates to meters.
    715      * 
     715     *
    716716     * When east/north coordinates are in degrees (geographic CRS), the scale
    717717     * at the equator is taken, i.e. 360 degrees corresponds to the length of
    718718     * the equator in meters.
    719      * 
     719     *
    720720     * @return factor to convert units to meter
    721721     */
     
    780780    }
    781781
    782     private EastNorth getPointAlong(int i, int N, ProjectionBounds r) {
     782    private static EastNorth getPointAlong(int i, int N, ProjectionBounds r) {
    783783        double dEast = (r.maxEast - r.minEast) / N;
    784784        double dNorth = (r.maxNorth - r.minNorth) / N;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ObliqueMercator.java

    r9998 r10000  
    368368    }
    369369
    370     private double normalizeLonRad(double a) {
     370    private static double normalizeLonRad(double a) {
    371371        return Math.toRadians(LatLon.normalizeLon(Math.toDegrees(a)));
    372372    }
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java

    r9900 r10000  
    114114    }
    115115
    116     private List<GeneralPath> createPolygons(List<Multipolygon.PolyData> joinedWays) {
     116    private static List<GeneralPath> createPolygons(List<Multipolygon.PolyData> joinedWays) {
    117117        List<GeneralPath> result = new ArrayList<>();
    118118        for (Multipolygon.PolyData way : joinedWays) {
Note: See TracChangeset for help on using the changeset viewer.