Changeset 14588 in josm for trunk/src/org
- Timestamp:
- 2018-12-22T19:03:47+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java
r14468 r14588 224 224 225 225 @Override 226 MessageHelper createMessage(Way w1, Way w2) {227 return new MessageHelper(tr("Crossing boundaries"), CROSSING_BOUNDARIES);228 }229 230 @Override231 226 public void visit(Relation r) { 232 227 for (Way w : r.getMemberPrimitives(Way.class)) { … … 260 255 } 261 256 262 @Override263 MessageHelper createMessage(Way w1, Way w2) {264 return new MessageHelper(tr("Crossing barriers"), CROSSING_BARRIERS);265 }266 257 } 267 258 … … 281 272 */ 282 273 public SelfCrossing() { 283 super(tr("Self crossing "), CROSSING_SELF);274 super(tr("Self crossing ways"), CROSSING_SELF); 284 275 } 285 276 … … 293 284 boolean ignoreWaySegmentCombination(Way w1, Way w2) { 294 285 return w1 != w2; // should not happen 295 }296 297 @Override298 MessageHelper createMessage(Way w1, Way w2) {299 return new MessageHelper(tr("Self-crossing ways"), CROSSING_SELF);300 286 } 301 287 } … … 351 337 abstract boolean ignoreWaySegmentCombination(Way w1, Way w2); 352 338 353 abstract MessageHelper createMessage(Way w1, Way w2); 339 MessageHelper createMessage(Way w1, Way w2) { 340 return new MessageHelper(this.name, this.code); 341 } 354 342 355 343 @Override
Note:
See TracChangeset
for help on using the changeset viewer.