PMD: Use direct access

This commit is contained in:
Gary Gregory 2022-11-06 11:16:28 -05:00
parent 17db5ba533
commit 5848c936b7
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ public interface Hasher {
default IndexProducer uniqueIndices(final Shape shape) { default IndexProducer uniqueIndices(final Shape shape) {
return consumer -> { return consumer -> {
Objects.requireNonNull(consumer, "consumer"); Objects.requireNonNull(consumer, "consumer");
return Hasher.this.indices(shape).forEachIndex(IndexFilter.create(shape, consumer)); return indices(shape).forEachIndex(IndexFilter.create(shape, consumer));
}; };
} }
} }

View File

@ -994,7 +994,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
parent.add(index + offset, obj); parent.add(index + offset, obj);
expectedModCount = parent.modCount; expectedModCount = parent.modCount;
size++; size++;
LinkedSubList.this.modCount++; modCount++;
} }
@Override @Override
@ -1004,7 +1004,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
final E result = parent.remove(index + offset); final E result = parent.remove(index + offset);
expectedModCount = parent.modCount; expectedModCount = parent.modCount;
size--; size--;
LinkedSubList.this.modCount++; modCount++;
return result; return result;
} }
@ -1025,7 +1025,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
parent.addAll(offset + index, coll); parent.addAll(offset + index, coll);
expectedModCount = parent.modCount; expectedModCount = parent.modCount;
size += cSize; size += cSize;
LinkedSubList.this.modCount++; modCount++;
return true; return true;
} }