Ignore:
Timestamp:
2018-06-12T22:19:16+02:00 (11 months ago)
Author:
Don-vip
Message:

add IPrimitive.getOsm*Id()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java

    r13849 r13924  
    113113     * Adds an object to be loaded, the object is specified by an OSM primitive.
    114114     *
    115      * @param primitive the OSM primitive. Must not be null. primitive.getId() > 0 required.
     115     * @param primitive the OSM primitive. Must not be null. primitive.getOsmId() > 0 required.
    116116     * @return this task
    117117     * @throws IllegalArgumentException if the primitive is null
    118      * @throws IllegalArgumentException if primitive.getId() <= 0
     118     * @throws IllegalArgumentException if primitive.getOsmId() <= 0
    119119     */
    120120    public HistoryLoadTask add(OsmPrimitive primitive) {
    121         CheckParameterUtil.ensure(primitive, "primitive", "id > 0", prim -> prim.getUniqueId() > 0);
    122         return add(primitive.getPrimitiveId());
     121        CheckParameterUtil.ensure(primitive, "primitive", "id > 0", prim -> prim.getOsmId() > 0);
     122        return add(primitive.getOsmPrimitiveId());
    123123    }
    124124
Note: See TracChangeset for help on using the changeset viewer.