Changeset 10942 in josm for trunk/src


Ignore:
Timestamp:
2016-09-03T12:55:23+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2325 - "private" methods that don't access instance data should be "static"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r10925 r10942  
    13591359    }
    13601360
    1361     private double computePath(double minSegmentLength, Rectangle bounds, List<MapViewPoint> points,
     1361    private static double computePath(double minSegmentLength, Rectangle bounds, List<MapViewPoint> points,
    13621362            List<HalfSegment> longHalfSegment) {
    13631363        MapViewPoint lastPoint = points.get(0);
     
    14991499    }
    15001500
    1501     private void appenOnewayPath(boolean onewayReversed, MapViewPoint p1, double nx, double ny, double dist,
     1501    private static void appenOnewayPath(boolean onewayReversed, MapViewPoint p1, double nx, double ny, double dist,
    15021502            double onewaySize, Path2D onewayPath) {
    15031503        // scale such that border is 1 px
Note: See TracChangeset for help on using the changeset viewer.