Remove public keyword from package level test members

This commit is contained in:
aherbert 2022-11-30 16:07:08 +00:00
parent d879329cd3
commit 5bcab481f7
3 changed files with 6 additions and 6 deletions

View File

@ -30,12 +30,12 @@ public abstract class AbstractBitMapProducerTest {
/** /**
* A testing consumer that always returns false. * 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. * 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. * Creates a producer with some data.

View File

@ -66,7 +66,7 @@ public class DefaultBitMapProducerTest extends AbstractBitMapProducerTest {
* @param size the number of values to generate * @param size the number of values to generate
* @return the array of random values. * @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(); return ThreadLocalRandom.current().longs(size).toArray();
} }

View File

@ -74,7 +74,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param bound the upper bound (exclusive) of the values in the array. * @param bound the upper bound (exclusive) of the values in the array.
* @return an array of int. * @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(); return ThreadLocalRandom.current().ints(size, 0, bound).toArray();
} }
@ -83,7 +83,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param ary the array * @param ary the array
* @return the set. * @return the set.
*/ */
public static BitSet uniqueSet(final int[] ary) { static BitSet uniqueSet(final int[] ary) {
final BitSet bs = new BitSet(); final BitSet bs = new BitSet();
Arrays.stream(ary).forEach(bs::set); Arrays.stream(ary).forEach(bs::set);
return bs; return bs;
@ -94,7 +94,7 @@ public class DefaultIndexProducerTest extends AbstractIndexProducerTest {
* @param ary the array to sort and make unique * @param ary the array to sort and make unique
* @return the sorted unique array. * @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(); return Arrays.stream(ary).distinct().sorted().toArray();
} }