Ignore:
Timestamp:
2015-10-15T01:02:36+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S2386 - Mutable fields should not be "public static"

Location:
trunk/src/org/openstreetmap/josm/data/validation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r8870 r8882  
    8181    public static double griddetail;
    8282
    83     public static final Collection<String> ignoredErrors = new TreeSet<>();
     83    private static final Collection<String> ignoredErrors = new TreeSet<>();
    8484
    8585    /**
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java

    r8512 r8882  
    3737
    3838    /** Values for {@code power} key interpreted as power lines */
    39     public static final Collection<String> POWER_LINE_TAGS = Arrays.asList("line", "minor_line");
     39    protected static final Collection<String> POWER_LINE_TAGS = Arrays.asList("line", "minor_line");
    4040    /** Values for {@code power} key interpreted as power towers */
    41     public static final Collection<String> POWER_TOWER_TAGS = Arrays.asList("tower", "pole");
     41    protected static final Collection<String> POWER_TOWER_TAGS = Arrays.asList("tower", "pole");
    4242    /** Values for {@code power} key interpreted as power stations */
    43     public static final Collection<String> POWER_STATION_TAGS = Arrays.asList("station", "sub_station", "substation", "plant", "generator");
     43    protected static final Collection<String> POWER_STATION_TAGS = Arrays.asList("station", "sub_station", "substation", "plant", "generator");
    4444    /** Values for {@code power} key interpreted as allowed power items */
    45     public static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator", "switchgear");
     45    protected static final Collection<String> POWER_ALLOWED_TAGS = Arrays.asList("switch", "transformer", "busbar", "generator", "switchgear");
    4646
    4747    private final Map<Way, String> towerPoleTagMap = new HashMap<>();
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java

    r8743 r8882  
    4242
    4343    /** Ways that must have a name */
    44     public static final Set<String> NAMED_WAYS = new HashSet<>();
     44    protected static final Set<String> NAMED_WAYS = new HashSet<>();
    4545    static {
    4646        NAMED_WAYS.add("motorway");
     
    5454
    5555    /** Whitelist of roles allowed to reference an untagged way */
    56     public static final Set<String> WHITELIST = new HashSet<>();
     56    protected static final Set<String> WHITELIST = new HashSet<>();
    5757    static {
    5858        WHITELIST.add("outer");
Note: See TracChangeset for help on using the changeset viewer.