Changeset 10663 in josm for trunk/src/org/openstreetmap/josm/command/SelectCommand.java
- Timestamp:
- 2016-07-28T01:24:39+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/SelectCommand.java
r10364 r10663 5 5 6 6 import java.util.Collection; 7 import java.util.Collections; 8 import java.util.HashSet; 7 9 import java.util.Objects; 8 10 … … 28 30 */ 29 31 public SelectCommand(Collection<OsmPrimitive> newSelection) { 30 this.newSelection = newSelection; 32 if (newSelection == null || newSelection.isEmpty()) { 33 this.newSelection = Collections.emptySet(); 34 } else { 35 this.newSelection = new HashSet<>(newSelection); 36 } 31 37 } 32 38
Note:
See TracChangeset
for help on using the changeset viewer.