Skip to content

Commit e005683

Browse files
author
Rob Harrop
committed
Some pedantry and whitespace
1 parent 81e0ca1 commit e005683

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/src/com/rabbitmq/utility/IntAllocatorTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)