Changeset 5828 in josm
- Timestamp:
- 2013-04-06T13:39:18+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r5655 r5828 13 13 import java.util.Set; 14 14 15 import org.openstreetmap.josm.command.Command; 16 import org.openstreetmap.josm.command.DeleteCommand; 15 17 import org.openstreetmap.josm.data.osm.Node; 16 18 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 211 213 } 212 214 } 215 216 /* (non-Javadoc) 217 * @see org.openstreetmap.josm.data.validation.Test#fixError(org.openstreetmap.josm.data.validation.TestError) 218 */ 219 @Override 220 public Command fixError(TestError testError) { 221 if (isFixable(testError)) { 222 return new DeleteCommand(testError.getPrimitives()); 223 } 224 return null; 225 } 226 227 /* (non-Javadoc) 228 * @see org.openstreetmap.josm.data.validation.Test#isFixable(org.openstreetmap.josm.data.validation.TestError) 229 */ 230 @Override 231 public boolean isFixable(TestError testError) { 232 return testError.getCode() == RELATION_EMPTY && testError.getPrimitives().iterator().next().isNew(); 233 } 213 234 }
Note:
See TracChangeset
for help on using the changeset viewer.