Ignore:
Timestamp:
2016-12-20T05:41:52+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #14135 - regression from r11395

File:
1 edited

Legend:

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

    r11395 r11408  
    507507        protected int slot;
    508508
    509         @Override
    510         public boolean hasNext() {
     509        protected final boolean doHasNext(T[] data) {
    511510            if (data == null) return false;
    512             align();
     511            align(data);
    513512            return slot < data.length;
    514513        }
    515514
    516         protected void align() {
     515        protected void align(T[] data) {
    517516            while (slot < data.length && data[slot] == null) {
    518517                slot++;
     
    526525        SafeReadonlyIter(T[] data) {
    527526            this.data = data;
     527        }
     528
     529        @Override
     530        public boolean hasNext() {
     531            return doHasNext(data);
    528532        }
    529533
     
    546550        Iter() {
    547551            mods = modCount;
     552        }
     553
     554        @Override
     555        public boolean hasNext() {
     556            return doHasNext(data);
    548557        }
    549558
     
    565574
    566575        @Override
    567         protected void align() {
     576        protected void align(T[] data) {
    568577            if (mods != modCount)
    569578                throw new ConcurrentModificationException();
    570             super.align();
     579            super.align(data);
    571580        }
    572581    }
Note: See TracChangeset for help on using the changeset viewer.