Changeset 14494 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-12-02T17:00:07+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r14437 r14494 64 64 public static final String ROLE_VERIF_PROBLEM_MSG = tr("Role verification problem"); 65 65 private boolean ignoreMultiPolygons; 66 private boolean ignoreTurnRestrictions; 66 67 67 68 /** … … 109 110 if (t instanceof MultipolygonTest) { 110 111 ignoreMultiPolygons = true; 111 break; 112 } 113 if (t instanceof TurnrestrictionTest) { 114 ignoreTurnRestrictions = true; 112 115 } 113 116 } … … 125 128 if (ignoreMultiPolygons && n.isMultipolygon()) { 126 129 // see #17010: don't report same problem twice 130 return; 131 } 132 if (ignoreTurnRestrictions && n.hasTag("type","restriction")) { 133 // see #17057: TurnrestrictionTest is specialized on this 127 134 return; 128 135 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
r11608 r14494 130 130 } 131 131 } 132 final String restriction = r.get("restriction"); 132 133 if (morefrom) { 133 errors.add(TestError.builder(this, Severity.ERROR, MORE_FROM) 134 Severity severity = "no_entry".equals(restriction) ? Severity.OTHER : Severity.ERROR; 135 errors.add(TestError.builder(this, severity, MORE_FROM) 134 136 .message(tr("More than one \"from\" way found")) 135 137 .primitives(r) … … 137 139 } 138 140 if (moreto) { 139 errors.add(TestError.builder(this, Severity.ERROR, MORE_TO) 141 Severity severity = "no_exit".equals(restriction) ? Severity.OTHER : Severity.ERROR; 142 errors.add(TestError.builder(this, severity, MORE_TO) 140 143 .message(tr("More than one \"to\" way found")) 141 144 .primitives(r) … … 170 173 } 171 174 if (fromWay.equals(toWay)) { 172 Severity severity = r.hasTag("restriction", "no_u_turn") ? Severity.OTHER : Severity.WARNING;175 Severity severity = "no_u_turn".equals(restriction) ? Severity.OTHER : Severity.WARNING; 173 176 errors.add(TestError.builder(this, severity, FROM_EQUALS_TO) 174 177 .message(tr("\"from\" way equals \"to\" way"))
Note:
See TracChangeset
for help on using the changeset viewer.