Changeset 17352 in josm for trunk/src/org


Ignore:
Timestamp:
2020-11-24T11:25:18+01:00 (4 years ago)
Author:
GerdP
Message:

see #20019: Warn about direction=forward/backward on invalid nodes.

  • fix parenthesis
File:
1 edited

Legend:

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

    r17349 r17352  
    4040            return;
    4141        for (Entry<String, String> tag : n.getKeys().entrySet()) {
    42             if (("forward".equals(tag.getValue()) || "backward".equals(tag.getValue())
    43                     && ("direction".equals(tag.getKey()) || tag.getKey().endsWith(":direction")))) {
     42            if (("forward".equals(tag.getValue()) || "backward".equals(tag.getValue()))
     43                    && ("direction".equals(tag.getKey()) || tag.getKey().endsWith(":direction"))) {
    4444                checkParents(n, tag.toString());
    4545            }
Note: See TracChangeset for help on using the changeset viewer.