Ignore:
Timestamp:
2016-02-23T02:11:42+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2272 - "Iterator.next()" methods should throw "NoSuchElementException" + javadoc/code style

File:
1 edited

Legend:

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

    r8836 r9854  
    55import java.util.Collection;
    66import java.util.Iterator;
     7import java.util.NoSuchElementException;
    78
    89/**
     
    5152        @Override
    5253        public T next() {
    53             findNext();
     54            if (!hasNext())
     55                throw new NoSuchElementException();
    5456            S old = current;
    5557            current = null;
Note: See TracChangeset for help on using the changeset viewer.