Changeset 13924 in josm for trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
- Timestamp:
- 2018-06-12T22:19:16+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
r13849 r13924 113 113 * Adds an object to be loaded, the object is specified by an OSM primitive. 114 114 * 115 * @param primitive the OSM primitive. Must not be null. primitive.get Id() > 0 required.115 * @param primitive the OSM primitive. Must not be null. primitive.getOsmId() > 0 required. 116 116 * @return this task 117 117 * @throws IllegalArgumentException if the primitive is null 118 * @throws IllegalArgumentException if primitive.get Id() <= 0118 * @throws IllegalArgumentException if primitive.getOsmId() <= 0 119 119 */ 120 120 public HistoryLoadTask add(OsmPrimitive primitive) { 121 CheckParameterUtil.ensure(primitive, "primitive", "id > 0", prim -> prim.get UniqueId() > 0);122 return add(primitive.get PrimitiveId());121 CheckParameterUtil.ensure(primitive, "primitive", "id > 0", prim -> prim.getOsmId() > 0); 122 return add(primitive.getOsmPrimitiveId()); 123 123 } 124 124
Note:
See TracChangeset
for help on using the changeset viewer.