Changeset 7796 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-12-12T01:28:39+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r7556 r7796 475 475 476 476 @Override 477 publicvoid setDataset(DataSet dataSet) {477 void setDataset(DataSet dataSet) { 478 478 super.setDataset(dataSet); 479 479 checkMembers(); -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r7675 r7796 619 619 620 620 @Override 621 publicvoid setDataset(DataSet dataSet) {621 void setDataset(DataSet dataSet) { 622 622 super.setDataset(dataSet); 623 623 checkNodes(); -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r7713 r7796 30 30 import org.openstreetmap.josm.command.DeleteCommand; 31 31 import org.openstreetmap.josm.command.SequenceCommand; 32 import org.openstreetmap.josm.data.osm.DataSet; 32 33 import org.openstreetmap.josm.data.osm.OsmPrimitive; 33 34 import org.openstreetmap.josm.data.osm.OsmUtils; … … 533 534 */ 534 535 public synchronized Collection<TestError> getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity) { 535 final ArrayList<TestError> r = new ArrayList<>();536 final List<TestError> r = new ArrayList<>(); 536 537 final Environment env = new Environment(p, new MultiCascade(), Environment.DEFAULT_LAYER, null); 537 538 for (Set<TagCheck> schecks : checks.values()) { … … 628 629 public Set<String> checkAsserts(final Collection<TagCheck> schecks) { 629 630 Set<String> assertionErrors = new LinkedHashSet<>(); 631 final DataSet ds = new DataSet(); 630 632 for (final TagCheck check : schecks) { 631 633 if (Main.isDebugEnabled()) { … … 637 639 } 638 640 final OsmPrimitive p = OsmUtils.createPrimitive(i.getKey()); 641 // Add primitive to dataset to avoid DataIntegrityProblemException when evaluating selectors 642 ds.addPrimitive(p); 639 643 final boolean isError = Utils.exists(getErrorsForPrimitive(p, true), new Predicate<TestError>() { 640 644 @Override … … 649 653 assertionErrors.add(error); 650 654 } 655 ds.removePrimitive(p); 651 656 } 652 657 }
Note:
See TracChangeset
for help on using the changeset viewer.