Changeset 21695 in osm
- Timestamp:
- 2010-06-14T12:48:03+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/reverter/src/reverter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/DataSetToCmd.java
- Property svn:executable deleted
-
applications/editors/josm/plugins/reverter/src/reverter/ReverterUploadHook.java
r21691 r21695 48 48 * error appears when trying to upload objects undeleted by reverter. 49 49 */ 50 if ( undeletedStorage.haveUndeletedObjects(ds)) {50 if (true) { 51 51 Collections.sort( 52 52 apiDataSet.getPrimitivesToUpdate(), -
applications/editors/josm/plugins/reverter/src/reverter/UndeletedObjectsStorage.java
r21691 r21695 8 8 import java.util.LinkedList; 9 9 import java.util.List; 10 import java.util.Set; 10 11 11 12 import org.openstreetmap.josm.data.osm.DataSet; … … 66 67 } 67 68 68 public List<OsmPrimitive> getUndeletedObjects(DataSet dataSet) {69 public Set<OsmPrimitive> getUndeletedObjects(DataSet dataSet) { 69 70 pruneObsolete(); 70 71 HashSet<PrimitiveIdVersion> idSet = undeletedPrimitives.get(dataSet); 71 if (idSet == null) return null;72 LinkedList<OsmPrimitive> undeleted = new LinkedList<OsmPrimitive>();72 HashSet<OsmPrimitive> undeleted = new HashSet<OsmPrimitive>(); 73 if (idSet == null) return undeleted; 73 74 for (PrimitiveIdVersion id : idSet) { 74 75 undeleted.add(dataSet.getPrimitiveById(id.getPrimitiveId()));
Note:
See TracChangeset
for help on using the changeset viewer.