Ignore:
Timestamp:
2020-03-19T17:13:34+01:00 (5 years ago)
Author:
gerdp
Message:

fix errorprone issues

Location:
applications/editors/josm/plugins/reverter/src/reverter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java

    r35310 r35382  
    1414import java.util.Iterator;
    1515import java.util.List;
    16 import java.util.Map.Entry;
     16import java.util.Map;
    1717
    1818import org.openstreetmap.josm.command.Command;
     
    258258            if (progressMonitor.isCanceled()) return;
    259259            // If multi-read failed, retry with regular read
    260             for (Entry<Long,Integer> entry : nodeList.entrySet()) {
     260            for (Map.Entry<Long,Integer> entry : nodeList.entrySet()) {
    261261                if (progressMonitor.isCanceled()) return;
    262262                readObjectVersion(rdr, new SimplePrimitiveId(entry.getKey(),OsmPrimitiveType.NODE), entry.getValue(), progressMonitor);
    263263            }
    264             for (Entry<Long,Integer> entry : wayList.entrySet()) {
     264            for (Map.Entry<Long,Integer> entry : wayList.entrySet()) {
    265265                if (progressMonitor.isCanceled()) return;
    266266                readObjectVersion(rdr, new SimplePrimitiveId(entry.getKey(),OsmPrimitiveType.WAY), entry.getValue(), progressMonitor);
    267267            }
    268             for (Entry<Long,Integer> entry : relationList.entrySet()) {
     268            for (Map.Entry<Long,Integer> entry : relationList.entrySet()) {
    269269                if (progressMonitor.isCanceled()) return;
    270270                readObjectVersion(rdr, new SimplePrimitiveId(entry.getKey(),OsmPrimitiveType.RELATION), entry.getValue(), progressMonitor);
  • applications/editors/josm/plugins/reverter/src/reverter/OsmServerMultiObjectReader.java

    r35084 r35382  
    99import java.util.List;
    1010import java.util.Map;
    11 import java.util.Map.Entry;
    1211
    1312import org.openstreetmap.josm.data.osm.DataSet;
     
    4847        StringBuilder sb = new StringBuilder();
    4948        int cnt=0;
    50         for (Entry<Long,Integer> entry : list.entrySet()) {
     49        for (Map.Entry<Long,Integer> entry : list.entrySet()) {
    5150            if (cnt == 0) {
    5251                sb.append(type.getAPIName());
Note: See TracChangeset for help on using the changeset viewer.