Ignore:
Timestamp:
2017-09-03T12:32:11+02:00 (2 years ago)
Author:
bastiK
Message:

see #15229 - remove dependencies of CheckParameterUtil on various data classes

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java

    r10378 r12713  
    5252     */
    5353    public OsmServerBackreferenceReader(OsmPrimitive primitive) {
    54         CheckParameterUtil.ensureValidPrimitiveId(primitive, "primitive");
     54        CheckParameterUtil.ensure(primitive, "primitive", "id > 0", prim -> prim.getUniqueId() > 0);
    5555        this.id = primitive.getId();
    5656        this.primitiveType = OsmPrimitiveType.from(primitive);
  • trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java

    r10212 r12713  
    9696
    9797    protected OsmServerObjectReader(PrimitiveId id, boolean full, int version) {
    98         CheckParameterUtil.ensureValidPrimitiveId(id, "id");
     98        CheckParameterUtil.ensure(id, "id", "id > 0", pid -> pid.getUniqueId() > 0);
    9999        this.id = id;
    100100        this.full = full;
Note: See TracChangeset for help on using the changeset viewer.