Changeset 21695 in osm for applications


Ignore:
Timestamp:
2010-06-14T12:48:03+02:00 (14 years ago)
Author:
upliner
Message:

regression fixes.

Question about when we need to sort modified objects still needs investigation.
We should always sort them for a while.

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  
    4848         * error appears when trying to upload objects undeleted by reverter.
    4949         */
    50         if (undeletedStorage.haveUndeletedObjects(ds)) {
     50        if (true) {
    5151            Collections.sort(
    5252                    apiDataSet.getPrimitivesToUpdate(),
  • applications/editors/josm/plugins/reverter/src/reverter/UndeletedObjectsStorage.java

    r21691 r21695  
    88import java.util.LinkedList;
    99import java.util.List;
     10import java.util.Set;
    1011
    1112import org.openstreetmap.josm.data.osm.DataSet;
     
    6667    }
    6768   
    68     public List<OsmPrimitive> getUndeletedObjects(DataSet dataSet) {
     69    public Set<OsmPrimitive> getUndeletedObjects(DataSet dataSet) {
    6970        pruneObsolete();
    7071        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;
    7374        for (PrimitiveIdVersion id : idSet) {
    7475            undeleted.add(dataSet.getPrimitiveById(id.getPrimitiveId()));
Note: See TracChangeset for help on using the changeset viewer.