@@ -449,12 +449,10 @@ private Data findHighestArrayData(Data arrayData) {
449
449
450
450
protected void resetIndexMap () {
451
451
AddressIndexMap previous = addressToIndexMap .reset ();
452
- if (removeUnviewableAddressRanges ()) {
453
- AddressBasedIndexMapper mapper =
454
- new AddressBasedIndexMapper (previous , addressToIndexMap );
455
- for (LayoutModelListener listener : listeners ) {
456
- listener .modelSizeChanged (mapper );
457
- }
452
+ removeUnviewableAddressRanges ();
453
+ AddressBasedIndexMapper mapper = new AddressBasedIndexMapper (previous , addressToIndexMap );
454
+ for (LayoutModelListener listener : listeners ) {
455
+ listener .modelSizeChanged (mapper );
458
456
}
459
457
}
460
458
@@ -495,8 +493,8 @@ private void checkIndex(BigInteger index, AddressSet addressSet) {
495
493
if (indexBefore == null ) {
496
494
indexBefore = BigInteger .ZERO ;
497
495
}
498
- if (indexAfter .subtract (indexBefore ). compareTo (
499
- addressToIndexMap .getMiniumUnviewableGapSize ()) > 0 ) {
496
+ if (indexAfter .subtract (indexBefore )
497
+ . compareTo ( addressToIndexMap .getMiniumUnviewableGapSize ()) > 0 ) {
500
498
Address start = addressToIndexMap .getAddress (indexBefore .add (BigInteger .ONE ));
501
499
Address end = addressToIndexMap .getAddress (indexAfter .subtract (BigInteger .ONE ));
502
500
if (start != null && end != null &&
0 commit comments