Ignore:
Timestamp:
2016-05-11T02:44:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:AssignmentInSubExpressionCheck - Assignments should not be made from within sub-expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java

    r10000 r10179  
    8484            Map<DataSet, Map<Relation, Multipolygon>> map1 = cache.get(nc);
    8585            if (map1 == null) {
    86                 cache.put(nc, map1 = new ConcurrentHashMap<>());
     86                map1 = new ConcurrentHashMap<>();
     87                cache.put(nc, map1);
    8788            }
    8889            Map<Relation, Multipolygon> map2 = map1.get(r.getDataSet());
    8990            if (map2 == null) {
    90                 map1.put(r.getDataSet(), map2 = new ConcurrentHashMap<>());
     91                map2 = new ConcurrentHashMap<>();
     92                map1.put(r.getDataSet(), map2);
    9193            }
    9294            multipolygon = map2.get(r);
    9395            if (multipolygon == null || forceRefresh) {
    94                 map2.put(r, multipolygon = new Multipolygon(r));
     96                multipolygon = new Multipolygon(r);
     97                map2.put(r, multipolygon);
    9598                for (PolyData pd : multipolygon.getCombinedPolygons()) {
    9699                    if (pd.selected) {
Note: See TracChangeset for help on using the changeset viewer.