This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new 2b3fae5aa Use method reference
2b3fae5aa is described below
commit 2b3fae5aaa10111799447dc4ba5aaf78a370fa53
Author: Alex Herbert <[email protected]>
AuthorDate: Mon Nov 7 09:15:27 2022 +0000
Use method reference
---
.../apache/commons/collections4/bloomfilter/DefaultBloomFilterTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterTest.java
b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterTest.java
index 869d8d2fc..7ccbda945 100644
---
a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterTest.java
+++
b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterTest.java
@@ -103,7 +103,7 @@ public class DefaultBloomFilterTest extends
AbstractBloomFilterTest<DefaultBloom
@Override
public boolean contains(final IndexProducer indexProducer) {
- return indexProducer.forEachIndex(i -> indices.contains(i));
+ return indexProducer.forEachIndex(indices::contains);
}
@Override