Changeset 11307 in josm


Ignore:
Timestamp:
2016-11-25T20:30:46+01:00 (3 years ago)
Author:
Don-vip
Message:

fix #14040 see #13799 - Regression: primitives collection must support clear operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r11298 r11307  
    33
    44import java.text.MessageFormat;
     5import java.util.ArrayList;
    56import java.util.Arrays;
    67import java.util.Collection;
     
    118119         */
    119120        public Builder primitives(OsmPrimitive... primitives) {
    120             return primitives(Arrays.asList(primitives));
     121            return primitives(new ArrayList<>(Arrays.asList(primitives)));
    121122        }
    122123
Note: See TracChangeset for help on using the changeset viewer.