Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2015-04-29T01:44:01+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r8285 r8291 119 119 * 120 120 * @param layer the data layer. Must not be null. 121 * @throws IllegalArgumentException thrownif layer is null122 */ 123 public Command(OsmDataLayer layer) throws IllegalArgumentException{121 * @throws IllegalArgumentException if layer is null 122 */ 123 public Command(OsmDataLayer layer) { 124 124 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 125 125 this.layer = layer; -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r7675 r8291 57 57 * 58 58 * @param data the primitives to delete. Must neither be null nor empty. 59 * @throws IllegalArgumentException thrownif data is null or empty60 */ 61 public DeleteCommand(Collection<? extends OsmPrimitive> data) throws IllegalArgumentException{59 * @throws IllegalArgumentException if data is null or empty 60 */ 61 public DeleteCommand(Collection<? extends OsmPrimitive> data) { 62 62 CheckParameterUtil.ensureParameterNotNull(data, "data"); 63 63 if (data.isEmpty()) … … 71 71 * 72 72 * @param data the primitive to delete. Must not be null. 73 * @throws IllegalArgumentException thrownif data is null74 */ 75 public DeleteCommand(OsmPrimitive data) throws IllegalArgumentException{73 * @throws IllegalArgumentException if data is null 74 */ 75 public DeleteCommand(OsmPrimitive data) { 76 76 this(Collections.singleton(data)); 77 77 } … … 83 83 * @param layer the layer context for deleting this primitive. Must not be null. 84 84 * @param data the primitive to delete. Must not be null. 85 * @throws IllegalArgumentException thrownif data is null86 * @throws IllegalArgumentException thrownif layer is null87 */ 88 public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) throws IllegalArgumentException{85 * @throws IllegalArgumentException if data is null 86 * @throws IllegalArgumentException if layer is null 87 */ 88 public DeleteCommand(OsmDataLayer layer, OsmPrimitive data) { 89 89 this(layer, Collections.singleton(data)); 90 90 } … … 96 96 * @param layer the layer context for deleting these primitives. Must not be null. 97 97 * @param data the primitives to delete. Must neither be null nor empty. 98 * @throws IllegalArgumentException thrownif layer is null99 * @throws IllegalArgumentException thrownif data is null or empty100 */ 101 public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) throws IllegalArgumentException{98 * @throws IllegalArgumentException if layer is null 99 * @throws IllegalArgumentException if data is null or empty 100 */ 101 public DeleteCommand(OsmDataLayer layer, Collection<? extends OsmPrimitive> data) { 102 102 super(layer); 103 103 CheckParameterUtil.ensureParameterNotNull(data, "data"); … … 246 246 * @param silent Set to true if the user should not be bugged with additional dialogs 247 247 * @return command A command to perform the deletions, or null of there is nothing to delete. 248 * @throws IllegalArgumentException thrownif layer is null249 */ 250 public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) throws IllegalArgumentException{248 * @throws IllegalArgumentException if layer is null 249 */ 250 public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection, boolean silent) { 251 251 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 252 252 if (selection == null || selection.isEmpty()) return null; … … 271 271 * @param selection The list of all object to be deleted. 272 272 * @return command A command to perform the deletions, or null of there is nothing to delete. 273 * @throws IllegalArgumentException thrownif layer is null273 * @throws IllegalArgumentException if layer is null 274 274 */ 275 275 public static Command deleteWithReferences(OsmDataLayer layer, Collection<? extends OsmPrimitive> selection) {
Note: See TracChangeset
for help on using the changeset viewer.