Skip to content
Permalink
Browse files
Support methods can be static
  • Loading branch information
aherbert committed Mar 30, 2022
1 parent 3fb6b32 commit b070b4289b2a05fea88c4191e8dffe3d90d8a907
Showing 1 changed file with 8 additions and 8 deletions.
@@ -261,7 +261,7 @@ void testRestoreForeignState(RestorableUniformRandomProvider generator) {
* @param generator RNG under test.
* @return a list containing {@code 11 * n} random numbers.
*/
private List<Number> makeList(int n, UniformRandomProvider generator) {
private static List<Number> makeList(int n, UniformRandomProvider generator) {
final List<Number> list = new ArrayList<>();

for (int i = 0; i < n; i++) {
@@ -296,10 +296,10 @@ private List<Number> makeList(int n, UniformRandomProvider generator) {
* @param nextMethod Method that fills the given {@code buffer}.
* @return {@code true} if the distribution is uniform.
*/
private boolean isUniformNextBytes(byte[] buffer,
int first,
int last,
Runnable nextMethod) {
private static boolean isUniformNextBytes(byte[] buffer,
int first,
int last,
Runnable nextMethod) {
final int sampleSize = 10000;

// Number of possible values (do not change).
@@ -350,9 +350,9 @@ private boolean isUniformNextBytes(byte[] buffer,
* values are to be placed in the first bin, {@code false} if it must
* go to the second bin.
*/
private void checkRandomWalk(UniformRandomProvider generator,
int sampleSize,
Callable<Boolean> nextMethod) {
private static void checkRandomWalk(UniformRandomProvider generator,
int sampleSize,
Callable<Boolean> nextMethod) {
int walk = 0;

try {

0 comments on commit b070b42

Please sign in to comment.