Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
- Timestamp:
- 2015-04-29T01:44:01+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r8290 r8291 187 187 * @param id the id. > 0 required 188 188 * @param version the version > 0 required 189 * @throws IllegalArgumentException thrownif id <= 0190 * @throws IllegalArgumentException thrownif version <= 0191 * @throws DataIntegrityProblemException If id is changed and primitive was already added to the dataset189 * @throws IllegalArgumentException if id <= 0 190 * @throws IllegalArgumentException if version <= 0 191 * @throws DataIntegrityProblemException if id is changed and primitive was already added to the dataset 192 192 */ 193 193 @Override … … 258 258 * 259 259 * @param changesetId the id. >= 0 required. 260 * @throws IllegalStateException thrownif this primitive is new.261 * @throws IllegalArgumentException thrownif id < 0262 */ 263 @Override 264 public void setChangesetId(int changesetId) throws IllegalStateException, IllegalArgumentException{260 * @throws IllegalStateException if this primitive is new. 261 * @throws IllegalArgumentException if id < 0 262 */ 263 @Override 264 public void setChangesetId(int changesetId) { 265 265 if (this.changesetId == changesetId) 266 266 return; … … 396 396 * 397 397 * @see #isVisible() 398 * @throws IllegalStateException thrown if visible is set to false on an primitive with 399 * id==0 400 */ 401 @Override 402 public void setVisible(boolean visible) throws IllegalStateException{ 398 * @throws IllegalStateException if visible is set to false on an primitive with id==0 399 */ 400 @Override 401 public void setVisible(boolean visible) { 403 402 if (isNew() && !visible) 404 403 throw new IllegalStateException(tr("A primitive with ID = 0 cannot be invisible."));
Note:
See TracChangeset
for help on using the changeset viewer.