Ignore:
Timestamp:
2015-05-21T02:19:24+02:00 (10 years ago)
Author:
Don-vip
Message:

Style - Method returns modified parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java

    r8385 r8406  
    201201            return null; //could not make multipolygon.
    202202        } else {
    203             return Pair.create(selectedMultipolygonRelation, createRelation(polygon, new Relation(selectedMultipolygonRelation)));
     203            return Pair.create(selectedMultipolygonRelation, createRelation(polygon, selectedMultipolygonRelation));
    204204        }
    205205    }
     
    214214            return null; //could not make multipolygon.
    215215        } else {
    216             return Pair.create(null, createRelation(polygon, new Relation()));
     216            return Pair.create(null, createRelation(polygon, null));
    217217        }
    218218    }
     
    302302     * @return multipolygon relation
    303303     */
    304     private static Relation createRelation(MultipolygonBuilder pol, final Relation rel) {
     304    private static Relation createRelation(MultipolygonBuilder pol, Relation clone) {
    305305        // Create new relation
     306        Relation rel = clone != null ? new Relation(clone) : new Relation();
    306307        rel.put("type", "multipolygon");
    307308        // Add ways to it
Note: See TracChangeset for help on using the changeset viewer.