Changeset 17499 in josm


Ignore:
Timestamp:
2021-02-20T22:23:21+01:00 (11 days ago)
Author:
Don-vip
Message:

see #20498 - see #10913 - partial revert of r17497, breaks other use cases

File:
1 edited

Legend:

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

    r17497 r17499  
    183183        /**
    184184         * Creates a fixing command which executes a {@link ChangePropertyKeyCommand} on the specified keys
    185          * if {@code p} does not already have {@code newKey}
    186185         * @param oldKey old key
    187186         * @param newKey new key
    188          * @return created fix command, or {@code null}
     187         * @return created fix command
    189188         */
    190189        static FixCommand fixChangeKey(final String oldKey, final String newKey) {
     
    192191                @Override
    193192                public Command createCommand(OsmPrimitive p, Selector matchingSelector) {
    194                     return p.hasKey(newKey) ? null : new ChangePropertyKeyCommand(p,
     193                    return new ChangePropertyKeyCommand(p,
    195194                            TagCheck.insertArguments(matchingSelector, oldKey, p),
    196195                            TagCheck.insertArguments(matchingSelector, newKey, p));
Note: See TracChangeset for help on using the changeset viewer.