Changeset 35607 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-10-20T02:32:30+02:00 (4 years ago)
Author:
simon04
Message:

fix errorprone issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java

    r35446 r35607  
    99import java.util.Comparator;
    1010import java.util.List;
    11 import java.util.Map.Entry;
     11import java.util.Map;
    1212
    1313import org.openstreetmap.josm.data.DataSource;
     
    9595                StringTable stable = getStringTable();
    9696                for (T i : contents) {
    97                     for (Entry<String, String> tag : i.getKeys().entrySet()) {
     97                    for (Map.Entry<String, String> tag : i.getKeys().entrySet()) {
    9898                        stable.incr(tag.getKey());
    9999                        stable.incr(tag.getValue());
     
    210210                    // Then we must include tag information.
    211211                    if (doesBlockHaveTags) {
    212                         for (Entry<String, String> t : i.getKeys().entrySet()) {
     212                        for (Map.Entry<String, String> t : i.getKeys().entrySet()) {
    213213                            bi.addKeysVals(stable.getIndex(t.getKey()));
    214214                            bi.addKeysVals(stable.getIndex(t.getValue()));
     
    223223            /**
    224224             * Serialize all nodes in the non-dense format.
    225              *
    226              * @param parentbuilder Add to this PrimitiveBlock.
    227225             */
    228226            public Osmformat.PrimitiveGroup serializeNonDense() {
     
    241239                    bi.setLon(lon);
    242240                    bi.setLat(lat);
    243                     for (Entry<String, String> t : i.getKeys().entrySet()) {
     241                    for (Map.Entry<String, String> t : i.getKeys().entrySet()) {
    244242                        bi.addKeys(stable.getIndex(t.getKey()));
    245243                        bi.addVals(stable.getIndex(t.getValue()));
     
    273271                        lastid = id;
    274272                    }
    275                     for (Entry<String, String> t : i.getKeys().entrySet()) {
     273                    for (Map.Entry<String, String> t : i.getKeys().entrySet()) {
    276274                        bi.addKeys(stable.getIndex(t.getKey()));
    277275                        bi.addVals(stable.getIndex(t.getValue()));
     
    328326                    }
    329327
    330                     for (Entry<String, String> t : i.getKeys().entrySet()) {
     328                    for (Map.Entry<String, String> t : i.getKeys().entrySet()) {
    331329                        bi.addKeys(stable.getIndex(t.getKey()));
    332330                        bi.addVals(stable.getIndex(t.getValue()));
Note: See TracChangeset for help on using the changeset viewer.