File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/src/com/rabbitmq/utility Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public class IntAllocatorTests extends TestCase {
2828 private static final int TEST_ITERATIONS = 50000 ;
2929 private static final int HI_RANGE = 100000 ;
3030 private static final int LO_RANGE = 100 ;
31- private IntAllocator iAll = new IntAllocator (LO_RANGE , HI_RANGE );
31+ private final IntAllocator iAll = new IntAllocator (LO_RANGE , HI_RANGE );
3232
33- private Random rand = new Random (70608L );
33+ private final Random rand = new Random (70608L );
3434
3535 public void testReserveAndFree () throws Exception {
3636 Set <Integer > set = new HashSet <Integer >();
@@ -91,11 +91,11 @@ private static int extractOne(Set<Integer> set) {
9191 iter .remove ();
9292 return trial ;
9393 }
94-
94+
9595 private static int getTrial (Random rand ) {
9696 return rand .nextInt (HI_RANGE -LO_RANGE +1 ) + LO_RANGE ;
9797 }
98-
98+
9999 private static boolean getBool (Random rand ) {
100100 return rand .nextBoolean ();
101101 }
You can’t perform that action at this time.
0 commit comments