diff --git a/src/org/openstreetmap/josm/data/validation/Test.java b/src/org/openstreetmap/josm/data/validation/Test.java
index fd13b42..a4abe74 100644
|
a
|
b
|
public class Test extends AbstractVisitor
|
| 153 | 153 | public void visit(Collection<OsmPrimitive> selection) { |
| 154 | 154 | progressMonitor.setTicksCount(selection.size()); |
| 155 | 155 | for (OsmPrimitive p : selection) { |
| 156 | | if (p.isUsable()) { |
| | 156 | if (isPrimitiveUsable(p)) { |
| 157 | 157 | p.accept(this); |
| 158 | 158 | } |
| 159 | 159 | progressMonitor.worked(1); |
| 160 | 160 | } |
| 161 | 161 | } |
| 162 | 162 | |
| | 163 | public boolean isPrimitiveUsable(OsmPrimitive p) { |
| | 164 | return p.isUsable() && (!(p instanceof Way) || (((Way) p).getNodesCount() > 1)); // test only Ways with at least 2 nodes |
| | 165 | } |
| | 166 | |
| 163 | 167 | @Override |
| 164 | 168 | public void visit(Node n) {} |
| 165 | 169 | |
diff --git a/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java b/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java
index ae8f2e5..bf823a4 100644
|
a
|
b
|
public class UntaggedWay extends Test
|
| 152 | 152 | public Command fixError(TestError testError) { |
| 153 | 153 | return deletePrimitivesIfNeeded(testError.getPrimitives()); |
| 154 | 154 | } |
| | 155 | |
| | 156 | @Override |
| | 157 | public boolean isPrimitiveUsable(OsmPrimitive p) { |
| | 158 | return p.isUsable(); |
| | 159 | } |
| 155 | 160 | } |