Ticket #17302: 17302.patch
| File 17302.patch, 1.3 KB (added by , 7 years ago) |
|---|
-
src/org/openstreetmap/josm/data/validation/TestError.java
18 18 import org.openstreetmap.josm.data.osm.Way; 19 19 import org.openstreetmap.josm.data.osm.WaySegment; 20 20 import org.openstreetmap.josm.data.validation.util.MultipleNameVisitor; 21 import org.openstreetmap.josm.tools.AlphanumComparator;22 21 import org.openstreetmap.josm.tools.CheckParameterUtil; 23 22 import org.openstreetmap.josm.tools.I18n; 24 23 … … 26 25 * Validation error 27 26 * @since 3669 28 27 */ 29 public class TestError implements Comparable<TestError>{28 public class TestError { 30 29 /** is this error on the ignore list */ 31 30 private boolean ignored; 32 31 /** Severity */ … … 424 423 return Collections.unmodifiableCollection(highlighted); 425 424 } 426 425 427 @Override428 public int compareTo(TestError o) {429 if (equals(o)) return 0;430 431 return AlphanumComparator.getInstance().compare(getNameVisitor().toString(), o.getNameVisitor().toString());432 }433 434 426 /** 435 427 * @return Name visitor (used in cell renderer and for sorting) 436 428 */
