Changeset 4043 in josm for trunk/src/org/openstreetmap/josm/data/validation
- Timestamp:
- 2011-04-20T15:14:02+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r3784 r4043 66 66 return ((List<Node>) o).get(0).getCoor().getRoundedToOsmPrecision(); 67 67 return RoundCoord(((List<Node>) o).get(0)); 68 } else {68 } else 69 69 throw new AssertionError(); 70 }71 70 } 72 71 … … 107 106 */ 108 107 public DuplicateNode() { 109 super(tr("Duplicated nodes ")+".",108 super(tr("Duplicated nodes."), 110 109 tr("This test checks that there are no nodes at the very same location.")); 111 110 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java
r3674 r4043 65 65 */ 66 66 public DuplicateWay() { 67 super(tr("Duplicated ways ")+".",68 tr("This test checks that there are no ways with same tags and same node coordinates."));67 super(tr("Duplicated ways."), 68 tr("This test checks that there are no ways with same tags and same node coordinates.")); 69 69 } 70 70 … … 95 95 List<LatLon> wLat = new ArrayList<LatLon>(wNodes.size()); 96 96 for (int i=0;i<wNodes.size();i++) { 97 97 wLat.add(wNodes.get(i).getCoor()); 98 98 } 99 99 Map<String, String> wkeys = w.getKeys(); -
trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java
r3674 r4043 39 39 */ 40 40 public SimilarNamedWays() { 41 super(tr("Similarly named ways ")+".",42 tr("This test checks for ways with similar names that may have been misspelled."));41 super(tr("Similarly named ways."), 42 tr("This test checks for ways with similar names that may have been misspelled.")); 43 43 } 44 44 -
trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedNode.java
r3950 r4043 37 37 */ 38 38 public UntaggedNode() { 39 super(tr("Untagged and unconnected nodes ")+".",39 super(tr("Untagged and unconnected nodes."), 40 40 tr("This test checks for untagged nodes that are not part of any way.")); 41 41 } … … 69 69 String msg = marktr("Has tag containing ''fixme'' or ''FIXME''"); 70 70 errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"), 71 71 tr(msg), msg, UNTAGGED_NODE_FIXME, n)); 72 72 return; 73 73 } … … 94 94 if (msg != null) { 95 95 errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"), 96 96 tr(msg), msg, code, n)); 97 97 return; 98 98 } … … 100 100 // Does not happen, but just to be sure. Maybe definition of uninteresting tags changes in future. 101 101 errors.add(new TestError(this, Severity.WARNING, tr("Unconnected nodes without physical tags"), 102 102 tr("Other"), "Other", UNTAGGED_NODE_OTHER, n)); 103 103 } 104 104 } … … 118 118 int code = testError.getCode(); 119 119 switch (code) { 120 121 122 123 124 120 case UNTAGGED_NODE_BLANK: 121 case UNTAGGED_NODE_CREATED_BY: 122 case UNTAGGED_NODE_WATCH: 123 case UNTAGGED_NODE_SOURCE: 124 return true; 125 125 } 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.