Ignore:
Timestamp:
2018-06-11T20:52:44+02:00 (18 months ago)
Author:
Don-vip
Message:

rendering of IPrimitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/SubclassFilteredCollection.java

    r10691 r13919  
    66import java.util.Iterator;
    77import java.util.NoSuchElementException;
     8import java.util.Objects;
    89import java.util.function.Predicate;
    910
     
    7677     */
    7778    public SubclassFilteredCollection(Collection<? extends S> collection, Predicate<? super S> predicate) {
    78         this.collection = collection;
    79         this.predicate = predicate;
     79        this.collection = Objects.requireNonNull(collection);
     80        this.predicate = Objects.requireNonNull(predicate);
    8081    }
    8182
Note: See TracChangeset for help on using the changeset viewer.