Changeset 10314 in josm


Ignore:
Timestamp:
2016-06-02T01:53:48+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S2272 - "Iterator.next()" methods should throw "NoSuchElementException"

File:
1 edited

Legend:

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

    r10309 r10314  
    166166        @Override
    167167        public E next() {
     168            if (!hasNext()) {
     169                throw new NoSuchElementException();
     170            }
    168171            checkForComodification();
    169172            try {
Note: See TracChangeset for help on using the changeset viewer.