Changeset 15019 in josm
- Timestamp:
- 2019-04-25T17:30:56+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
r15004 r15019 18 18 19 19 /** 20 * Checks if turn restrictions are valid20 * Checks if turn restrictions are valid 21 21 * @since 3669 22 22 */ … … 53 53 */ 54 54 public TurnrestrictionTest() { 55 super(tr("Turn restrictions"), tr("This test checks if turnrestrictions are valid."));55 super(tr("Turn restrictions"), tr("This test checks if turn restrictions are valid.")); 56 56 } 57 57 … … 63 63 if (!r.hasTag("restriction", SUPPORTED_RESTRICTIONS)) { 64 64 errors.add(TestError.builder(this, Severity.ERROR, UNKNOWN_RESTRICTION) 65 .message(tr("Unknown turn restriction"))65 .message(tr("Unknown turn restriction")) 66 66 .primitives(r) 67 67 .build()); … … 116 116 default: 117 117 errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE) 118 .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole()))118 .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole())) 119 119 .primitives(l) 120 120 .highlight(m.getMember()) … … 135 135 } else { 136 136 errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_ROLE) 137 .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole()))137 .message(tr("Unexpected role ''{0}'' in turn restriction", m.getRole())) 138 138 .primitives(l) 139 139 .highlight(m.getMember()) … … 142 142 } else { 143 143 errors.add(TestError.builder(this, Severity.WARNING, UNEXPECTED_TYPE) 144 .message(tr("Unexpected member type in turn restriction"))144 .message(tr("Unexpected member type in turn restriction")) 145 145 .primitives(l) 146 146 .highlight(m.getMember()) … … 225 225 if (isFullOneway(toWay) && viaNode.equals(toWay.lastNode(true))) { 226 226 errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS) 227 .message(tr("Superfluous turn restriction as \"to\" way is oneway"))227 .message(tr("Superfluous turn restriction as \"to\" way is oneway")) 228 228 .primitives(r) 229 229 .highlight(toWay) … … 233 233 if (isFullOneway(fromWay) && viaNode.equals(fromWay.firstNode(true))) { 234 234 errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS) 235 .message(tr("Superfluous turn restriction as \"from\" way is oneway"))235 .message(tr("Superfluous turn restriction as \"from\" way is oneway")) 236 236 .primitives(r) 237 237 .highlight(fromWay) … … 248 248 if (isFullOneway(toWay) && ((Way) via.get(via.size() - 1)).isFirstLastNode(toWay.lastNode(true))) { 249 249 errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS) 250 .message(tr("Superfluous turn restriction as \"to\" way is oneway"))250 .message(tr("Superfluous turn restriction as \"to\" way is oneway")) 251 251 .primitives(r) 252 252 .highlight(toWay) … … 256 256 if (isFullOneway(fromWay) && ((Way) via.get(0)).isFirstLastNode(fromWay.firstNode(true))) { 257 257 errors.add(TestError.builder(this, Severity.WARNING, SUPERFLUOUS) 258 .message(tr("Superfluous turn restriction as \"from\" way is oneway"))258 .message(tr("Superfluous turn restriction as \"from\" way is oneway")) 259 259 .primitives(r) 260 260 .highlight(fromWay)
Note:
See TracChangeset
for help on using the changeset viewer.