Changeset 6069 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2013-07-17T00:01:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
r5787 r6069 45 45 } 46 46 } 47 47 48 48 private static final Collection<Pattern> ignoredKeys = new ArrayList<Pattern>(); 49 49 static { … … 58 58 } 59 59 } 60 60 61 61 private static class StringSwitcher { 62 62 … … 93 93 */ 94 94 public static class TagSwitcher { 95 95 96 96 /** 97 97 * Reverses a given tag. … … 102 102 return apply(tag.getKey(), tag.getValue()); 103 103 } 104 104 105 105 /** 106 106 * Reverses a given tag (key=value). … … 128 128 // Change key but not left/right value (fix #8518) 129 129 newKey = FORWARD_BACKWARD.apply(key); 130 130 131 131 } else if (!ignoreKeyForCorrection(key)) { 132 132 for (StringSwitcher prefixSuffixSwitcher : stringSwitchers) { … … 144 144 } 145 145 } 146 146 147 147 private static final StringSwitcher FORWARD_BACKWARD = new StringSwitcher("forward", "backward"); 148 148 private static final StringSwitcher UP_DOWN = new StringSwitcher("up", "down");
Note:
See TracChangeset
for help on using the changeset viewer.