- Timestamp:
- 2021-02-20T22:23:21+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r17497 r17499 183 183 /** 184 184 * Creates a fixing command which executes a {@link ChangePropertyKeyCommand} on the specified keys 185 * if {@code p} does not already have {@code newKey}186 185 * @param oldKey old key 187 186 * @param newKey new key 188 * @return created fix command , or {@code null}187 * @return created fix command 189 188 */ 190 189 static FixCommand fixChangeKey(final String oldKey, final String newKey) { … … 192 191 @Override 193 192 public Command createCommand(OsmPrimitive p, Selector matchingSelector) { 194 return p.hasKey(newKey) ? null :new ChangePropertyKeyCommand(p,193 return new ChangePropertyKeyCommand(p, 195 194 TagCheck.insertArguments(matchingSelector, oldKey, p), 196 195 TagCheck.insertArguments(matchingSelector, newKey, p));
Note:
See TracChangeset
for help on using the changeset viewer.