You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/11/06 16:32:20 UTC
[commons-collections] 02/03: PMD: Use direct access
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
commit 5848c936b7ddc4a85e2a171ddf350e3adb933ada
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 6 11:16:28 2022 -0500
PMD: Use direct access
---
.../java/org/apache/commons/collections4/bloomfilter/Hasher.java | 2 +-
.../org/apache/commons/collections4/list/AbstractLinkedList.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/Hasher.java b/src/main/java/org/apache/commons/collections4/bloomfilter/Hasher.java
index f6cec587a..d8b3a43aa 100644
--- a/src/main/java/org/apache/commons/collections4/bloomfilter/Hasher.java
+++ b/src/main/java/org/apache/commons/collections4/bloomfilter/Hasher.java
@@ -58,7 +58,7 @@ public interface Hasher {
default IndexProducer uniqueIndices(final Shape shape) {
return consumer -> {
Objects.requireNonNull(consumer, "consumer");
- return Hasher.this.indices(shape).forEachIndex(IndexFilter.create(shape, consumer));
+ return indices(shape).forEachIndex(IndexFilter.create(shape, consumer));
};
}
}
diff --git a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
index f27650335..4125451ea 100644
--- a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java
@@ -994,7 +994,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
parent.add(index + offset, obj);
expectedModCount = parent.modCount;
size++;
- LinkedSubList.this.modCount++;
+ modCount++;
}
@Override
@@ -1004,7 +1004,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
final E result = parent.remove(index + offset);
expectedModCount = parent.modCount;
size--;
- LinkedSubList.this.modCount++;
+ modCount++;
return result;
}
@@ -1025,7 +1025,7 @@ public abstract class AbstractLinkedList<E> implements List<E> {
parent.addAll(offset + index, coll);
expectedModCount = parent.modCount;
size += cSize;
- LinkedSubList.this.modCount++;
+ modCount++;
return true;
}