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/gui/mappaint/mapcss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java

    r8880 r8882  
    119119        CONTAINS;
    120120
    121         public static final Set<Op> NEGATED_OPS = EnumSet.of(NEQ, NREGEX);
     121        protected static final Set<Op> NEGATED_OPS = EnumSet.of(NEQ, NREGEX);
    122122
    123123        /**
     
    283283
    284284        public final Pattern pattern;
    285         public static final Set<Op> SUPPORTED_OPS = EnumSet.of(Op.REGEX, Op.NREGEX);
     285        protected static final Set<Op> SUPPORTED_OPS = EnumSet.of(Op.REGEX, Op.NREGEX);
    286286
    287287        public KeyValueRegexpCondition(String k, String v, Op op, boolean considerValAsKey) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r8870 r8882  
    100100     * Set of all supported MapCSS keys.
    101101     */
    102     public static final Set<String> SUPPORTED_KEYS = new HashSet<>();
     102    protected static final Set<String> SUPPORTED_KEYS = new HashSet<>();
    103103    static {
    104104        Field[] declaredFields = StyleKeys.class.getDeclaredFields();
Note: See TracChangeset for help on using the changeset viewer.