Changeset 7012 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
- Timestamp:
- 2014-04-27T15:35:47+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
r7005 r7012 75 75 } 76 76 77 if ("from".equals(m.getRole())) { 77 switch (m.getRole()) { 78 case "from": 78 79 if (fromWay != null) { 79 80 morefrom = true; … … 81 82 fromWay = w; 82 83 } 83 } else if ("to".equals(m.getRole())) { 84 break; 85 case "to": 84 86 if (toWay != null) { 85 87 moreto = true; … … 87 89 toWay = w; 88 90 } 89 } else if ("via".equals(m.getRole())) { 91 break; 92 case "via": 90 93 if (!via.isEmpty() && via.get(0) instanceof Node) { 91 94 mixvia = true; … … 93 96 via.add(w); 94 97 } 95 } else { 98 break; 99 default: 96 100 errors.add(new TestError(this, Severity.WARNING, tr("Unknown role"), UNKNOWN_ROLE, 97 101 l, Collections.singletonList(m)));
Note:
See TracChangeset
for help on using the changeset viewer.