You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/11/30 16:11:17 UTC
[commons-collections] 04/04: Remove public keyword from package level test members
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
commit 5bcab481f7e9673ef56bee333d90ef1b11ae2579
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Nov 30 16:07:08 2022 +0000
Remove public keyword from package level test members
---
.../collections4/bloomfilter/AbstractBitMapProducerTest.java | 4 ++--
.../commons/collections4/bloomfilter/DefaultBitMapProducerTest.java | 2 +-
.../commons/collections4/bloomfilter/DefaultIndexProducerTest.java | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBitMapProducerTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBitMapProducerTest.java
index cd16036d5..956712bbf 100644
--- a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBitMapProducerTest.java
+++ b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBitMapProducerTest.java
@@ -30,12 +30,12 @@ public abstract class AbstractBitMapProducerTest {
/**
* A testing consumer that always returns false.
*/
- public static final LongPredicate FALSE_CONSUMER = arg0 -> false;
+ static final LongPredicate FALSE_CONSUMER = arg0 -> false;
/**
* A testing consumer that always returns true.
*/
- public static final LongPredicate TRUE_CONSUMER = arg0 -> true;
+ static final LongPredicate TRUE_CONSUMER = arg0 -> true;
/**
* Creates a producer with some data.
diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBitMapProducerTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBitMapProducerTest.java
index 490496e81..e2c54341f 100644
--- a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBitMapProducerTest.java
+++ b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBitMapProducerTest.java
@@ -66,7 +66,7 @@ public class DefaultBitMapProducerTest extends AbstractBitMapProducerTest {
* @param size the number of values to generate
* @return the array of random values.
*/
- public static long[] generateLongArray(final int size) {
+ static long[] generateLongArray(final int size) {
return ThreadLocalRandom.current().longs(size).toArray();
}
diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultIndexProducerTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultIndexProducerTest.java
index 2682a96a7..c09158c35 100644
--- a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultIndexProducerTest.java
+++ b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultIndexProducerTest.java
@@ -74,7 +74,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param bound the upper bound (exclusive) of the values in the array.
* @return an array of int.
*/
- public static int[] generateIntArray(final int size, final int bound) {
+ static int[] generateIntArray(final int size, final int bound) {
return ThreadLocalRandom.current().ints(size, 0, bound).toArray();
}
@@ -83,7 +83,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param ary the array
* @return the set.
*/
- public static BitSet uniqueSet(final int[] ary) {
+ static BitSet uniqueSet(final int[] ary) {
final BitSet bs = new BitSet();
Arrays.stream(ary).forEach(bs::set);
return bs;
@@ -94,7 +94,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param ary the array to sort and make unique
* @return the sorted unique array.
*/
- public static int[] unique(final int[] ary) {
+ static int[] unique(final int[] ary) {
return Arrays.stream(ary).distinct().sorted().toArray();
}