Changeset 11408 in josm for trunk/src/org
- Timestamp:
- 2016-12-20T05:41:52+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r11395 r11408 507 507 protected int slot; 508 508 509 @Override 510 public boolean hasNext() { 509 protected final boolean doHasNext(T[] data) { 511 510 if (data == null) return false; 512 align( );511 align(data); 513 512 return slot < data.length; 514 513 } 515 514 516 protected void align( ) {515 protected void align(T[] data) { 517 516 while (slot < data.length && data[slot] == null) { 518 517 slot++; … … 526 525 SafeReadonlyIter(T[] data) { 527 526 this.data = data; 527 } 528 529 @Override 530 public boolean hasNext() { 531 return doHasNext(data); 528 532 } 529 533 … … 546 550 Iter() { 547 551 mods = modCount; 552 } 553 554 @Override 555 public boolean hasNext() { 556 return doHasNext(data); 548 557 } 549 558 … … 565 574 566 575 @Override 567 protected void align( ) {576 protected void align(T[] data) { 568 577 if (mods != modCount) 569 578 throw new ConcurrentModificationException(); 570 super.align( );579 super.align(data); 571 580 } 572 581 }
Note:
See TracChangeset
for help on using the changeset viewer.