Ignore:
Timestamp:
2017-07-30T00:22:46+02:00 (2 years ago)
Author:
Don-vip
Message:

PMD - VariableNamingConventions

Location:
trunk/src/org/openstreetmap/josm/corrector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java

    r12279 r12537  
    3636     * Tags that imply a semantic meaning from the way direction and cannot be changed.
    3737     */
    38     private static final TagCollection directionalTags = new TagCollection(Arrays.asList(
     38    private static final TagCollection DIRECTIONAL_TAGS = new TagCollection(Arrays.asList(
    3939            new Tag("natural", "coastline"),
    4040            new Tag("natural", "cliff"),
     
    5454        for (Map.Entry<String, String> entry : way.getKeys().entrySet()) {
    5555            final Tag tag = new Tag(entry.getKey(), entry.getValue());
    56             final boolean isDirectional = directionalTags.contains(tag) || tag.isDirectionKey();
     56            final boolean isDirectional = DIRECTIONAL_TAGS.contains(tag) || tag.isDirectionKey();
    5757            if (isDirectional) {
    5858                final boolean cannotBeCorrected = ReverseWayTagCorrector.getTagCorrections(tag).isEmpty();
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r12412 r12537  
    5353    }
    5454
    55     private static final Collection<Pattern> ignoredKeys = new ArrayList<>();
     55    private static final Collection<Pattern> IGNORED_KEYS = new ArrayList<>();
    5656    static {
    5757        for (String s : OsmPrimitive.getUninterestingKeys()) {
    58             ignoredKeys.add(getPatternFor(s));
     58            IGNORED_KEYS.add(getPatternFor(s));
    5959        }
    6060        for (String s : new String[]{"name", "ref", "tiger:county"}) {
    61             ignoredKeys.add(getPatternFor(s, false));
     61            IGNORED_KEYS.add(getPatternFor(s, false));
    6262        }
    6363        for (String s : new String[]{"tiger:county", "turn:lanes", "change:lanes", "placement"}) {
    64             ignoredKeys.add(getPatternFor(s, true));
     64            IGNORED_KEYS.add(getPatternFor(s, true));
    6565        }
    6666    }
     
    292292
    293293    private static boolean ignoreKeyForCorrection(String key) {
    294         for (Pattern ignoredKey : ignoredKeys) {
     294        for (Pattern ignoredKey : IGNORED_KEYS) {
    295295            if (ignoredKey.matcher(key).matches()) {
    296296                return true;
Note: See TracChangeset for help on using the changeset viewer.