Changeset 5246 in osm for applications/editors/josm
- Timestamp:
- 2007-10-30T14:21:23+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r4843 r5246 26 26 /** Unnamed way error */ 27 27 protected static final int UNNAMED_WAY = 2; 28 /** One node way error */ 29 protected static final int ONE_NODE_WAY = 3; 28 30 29 31 /** Tags allowed in a way */ … … 48 50 public UntaggedWay() 49 51 { 50 super(tr("Untagged ways."),51 tr("This test checks for untagged ways."));52 super(tr("Untagged, empty, and one node ways."), 53 tr("This test checks for untagged, empty and one node ways.")); 52 54 } 53 55 … … 92 94 } 93 95 96 if( w.nodes.size() == 1 ) 97 { 98 errors.add( new TestError(this, Severity.ERROR, tr("One node ways"), w, ONE_NODE_WAY) ); 99 } 100 94 101 } 95 102 … … 99 106 if( testError.getTester() instanceof UntaggedWay ) 100 107 { 101 return testError.getInternalCode() == EMPTY_WAY; 108 return testError.getInternalCode() == EMPTY_WAY 109 || testError.getInternalCode() == ONE_NODE_WAY; 102 110 } 103 111
Note:
See TracChangeset
for help on using the changeset viewer.