Changeset 11240 in josm for trunk/src/org/openstreetmap/josm/command/AddCommand.java
- Timestamp:
- 2016-11-12T14:52:32+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddCommand.java
r11140 r11240 11 11 import javax.swing.Icon; 12 12 13 import org.openstreetmap.josm.data.osm.DataSet; 13 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 15 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 47 48 public AddCommand(OsmDataLayer layer, OsmPrimitive osm) { 48 49 super(layer); 50 this.osm = Objects.requireNonNull(osm, "osm"); 51 } 52 53 /** 54 * Creates the command and specify the element to add in the context of the given data set. 55 * @param data The data set. Must not be {@code null} 56 * @param osm The primitive to add 57 * @since 11240 58 */ 59 public AddCommand(DataSet data, OsmPrimitive osm) { 60 super(data); 49 61 this.osm = Objects.requireNonNull(osm, "osm"); 50 62 }
Note:
See TracChangeset
for help on using the changeset viewer.