Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
- Timestamp:
- 2015-04-29T01:44:01+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r7432 r8291 40 40 * @param full true, if a full download is requested (i.e. a download including 41 41 * immediate children); false, otherwise 42 * @throws IllegalArgumentException thrownif id <= 043 * @throws IllegalArgumentException thrownif type is null42 * @throws IllegalArgumentException if id <= 0 43 * @throws IllegalArgumentException if type is null 44 44 */ 45 public OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full) throws IllegalArgumentException{45 public OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full) { 46 46 this(id, type, full, -1); 47 47 } … … 53 53 * @param type the type. Must not be null. 54 54 * @param version the specific version number, if required; -1, otherwise 55 * @throws IllegalArgumentException thrownif id <= 056 * @throws IllegalArgumentException thrownif type is null55 * @throws IllegalArgumentException if id <= 0 56 * @throws IllegalArgumentException if type is null 57 57 */ 58 public OsmServerObjectReader(long id, OsmPrimitiveType type, int version) throws IllegalArgumentException{58 public OsmServerObjectReader(long id, OsmPrimitiveType type, int version) { 59 59 this(id, type, false, version); 60 60 } 61 61 62 protected OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full, int version) throws IllegalArgumentException{62 protected OsmServerObjectReader(long id, OsmPrimitiveType type, boolean full, int version) { 63 63 if (id <= 0) 64 64 throw new IllegalArgumentException(MessageFormat.format("Expected value > 0 for parameter ''{0}'', got {1}", "id", id)); … … 75 75 * @param full true, if a full download is requested (i.e. a download including 76 76 * immediate children); false, otherwise 77 * @throws IllegalArgumentException thrownif id is null78 * @throws IllegalArgumentException thrownif id.getUniqueId() <= 077 * @throws IllegalArgumentException if id is null 78 * @throws IllegalArgumentException if id.getUniqueId() <= 0 79 79 */ 80 80 public OsmServerObjectReader(PrimitiveId id, boolean full) { … … 87 87 * @param id the object id. Must not be null. Unique id > 0 required. 88 88 * @param version the specific version number, if required; -1, otherwise 89 * @throws IllegalArgumentException thrownif id is null90 * @throws IllegalArgumentException thrownif id.getUniqueId() <= 089 * @throws IllegalArgumentException if id is null 90 * @throws IllegalArgumentException if id.getUniqueId() <= 0 91 91 */ 92 92 public OsmServerObjectReader(PrimitiveId id, int version) {
Note:
See TracChangeset
for help on using the changeset viewer.