Changeset 11374 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2016-12-09T23:31:13+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
r11240 r11374 19 19 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 20 20 import org.openstreetmap.josm.tools.CheckParameterUtil; 21 import org.openstreetmap.josm.tools.JosmRuntimeException; 21 22 22 23 /** … … 170 171 OsmPrimitive osm = getAffectedDataSet().getPrimitiveById(d); 171 172 if (osm == null) 172 throw new RuntimeException();173 throw new JosmRuntimeException("No primitive found for " + d); 173 174 prims.add(osm); 174 175 } … … 188 189 AddPrimitivesCommand that = (AddPrimitivesCommand) obj; 189 190 return Objects.equals(data, that.data) && 190 191 192 191 Objects.equals(toSelect, that.toSelect) && 192 Objects.equals(createdPrimitives, that.createdPrimitives) && 193 Objects.equals(createdPrimitivesToSelect, that.createdPrimitivesToSelect); 193 194 } 194 195 }
Note: See TracChangeset
for help on using the changeset viewer.