diff --git a/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java b/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
index 74278c5..8695531 100644
a
|
b
|
|
38 | 38 | protected static final int MIX_VIA = 1813; |
39 | 39 | protected static final int UNCONNECTED_VIA = 1814; |
40 | 40 | protected static final int SUPERFLUOUS = 1815; |
| 41 | protected static final int FROM_EQUALS_TO = 1816; |
41 | 42 | |
42 | 43 | /** |
43 | 44 | * Constructs a new {@code TurnrestrictionTest}. |
… |
… |
public void visit(Relation r) {
|
142 | 143 | errors.add(new TestError(this, Severity.ERROR, tr("No \"to\" way found"), NO_TO, r)); |
143 | 144 | return; |
144 | 145 | } |
| 146 | if (fromWay.equals(toWay)) { |
| 147 | errors.add(new TestError(this, Severity.OTHER, tr("\"from\" way equals \"to\" way"), FROM_EQUALS_TO, r)); |
| 148 | } |
145 | 149 | if (via.isEmpty()) { |
146 | 150 | errors.add(new TestError(this, Severity.ERROR, tr("No \"via\" node or way found"), NO_VIA, r)); |
147 | 151 | return; |