Changeset 13765 in josm


Ignore:
Timestamp:
2018-05-14T03:49:36+02:00 (7 years ago)
Author:
Don-vip
Message:

fix unit tests, PMD violation

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r13764 r13765  
    515515    }
    516516
    517     protected void removePrimitive(OsmPrimitive primitive) {
     517    void removePrimitive(OsmPrimitive primitive) {
    518518        checkModifiable();
    519519        beginUpdate();
  • trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java

    r11324 r13765  
    4343        List<Relation> allRelations = new ArrayList<>(ds.getRelations());
    4444
    45         QuadBuckets<Node> nodes = Reflection.field("nodes").ofType(new TypeRef<QuadBuckets<Node>>() {}).in(ds).get();
    46         QuadBuckets<Way> ways = Reflection.field("ways").ofType(new TypeRef<QuadBuckets<Way>>() {}).in(ds).get();
    47         Collection<Relation> relations = Reflection.field("relations").ofType(new TypeRef<Collection<Relation>>() {}).in(ds).get();
     45        QuadBucketPrimitiveStore<Node, Way, Relation> s = Reflection.field("store").ofType(
     46                new TypeRef<QuadBucketPrimitiveStore<Node, Way, Relation>>() {}).in(ds).get();
     47        QuadBuckets<Node> nodes = Reflection.field("nodes").ofType(new TypeRef<QuadBuckets<Node>>() {}).in(s).get();
     48        QuadBuckets<Way> ways = Reflection.field("ways").ofType(new TypeRef<QuadBuckets<Way>>() {}).in(s).get();
     49        Collection<Relation> relations = Reflection.field("relations").ofType(new TypeRef<Collection<Relation>>() {}).in(s).get();
    4850
    4951        int expectedCount = allNodes.size();
Note: See TracChangeset for help on using the changeset viewer.