Ignore:
Timestamp:
2015-10-13T23:50:14+02:00 (9 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/validation/tests/MultipolygonTest.java

    r8777 r8870  
    9191    }
    9292
    93     private GeneralPath createPath(List<Node> nodes) {
     93    private static GeneralPath createPath(List<Node> nodes) {
    9494        GeneralPath result = new GeneralPath();
    9595        result.moveTo((float) nodes.get(0).getCoor().lat(), (float) nodes.get(0).getCoor().lon());
     
    109109    }
    110110
    111     private Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner) {
     111    private static Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner) {
    112112        boolean inside = false;
    113113        boolean outside = false;
     
    292292    }
    293293
    294     private void addRelationIfNeeded(TestError error, Relation r) {
     294    private static void addRelationIfNeeded(TestError error, Relation r) {
    295295        // Fix #8212 : if the error references only incomplete primitives,
    296296        // add multipolygon in order to let user select something and fix the error
Note: See TracChangeset for help on using the changeset viewer.