Ignore:
Timestamp:
2015-10-10T15:15:14+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S3047 - Multiple loops over the same set should be combined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/session/SessionReader.java

    r8540 r8850  
    503503                }
    504504            }
    505         }
    506         for (Entry<Integer, Layer> e : layersMap.entrySet()) {
    507             Layer l = e.getValue();
    508             if (l == null) {
    509                 continue;
    510             }
    511 
    512             l.setName(names.get(e.getKey()));
    513             layers.add(l);
     505            layer.setName(names.get(entry.getKey()));
     506            layers.add(layer);
    514507        }
    515508    }
Note: See TracChangeset for help on using the changeset viewer.