Ticket #3443: api05.patch
File api05.patch, 971 bytes (added by , 15 years ago) |
---|
-
OsmPrimitive.java
368 368 * @param id the id. > 0 required 369 369 * @param version the version > 0 required 370 370 * @throws IllegalArgumentException thrown if id <= 0 371 * @throws IllegalArgumentException thrown if version < =0371 * @throws IllegalArgumentException thrown if version < 0 372 372 */ 373 373 public void setOsmId(long id, int version) { 374 374 if (id <= 0) 375 375 throw new IllegalArgumentException(tr("ID > 0 expected. Got {0}.", id)); 376 if (version < =0)377 throw new IllegalArgumentException(tr("Version > 0 expected. Got {0}.", version));376 if (version < 0) 377 throw new IllegalArgumentException(tr("Version >= 0 expected. Got {0}.", version)); 378 378 this.id = id; 379 379 this.version = version; 380 380 this.incomplete = false;