Use final.

This commit is contained in:
Gary Gregory 2020-02-16 15:08:34 -05:00
parent c5348397a9
commit f95c8526ad
2 changed files with 8 additions and 8 deletions

View File

@ -88,9 +88,9 @@ public class DynamicHasherTest {
final OfInt iter = hasher.getBits(shape);
for (int i = 0; i < expected.length; i++) {
for (final int element : expected) {
assertTrue(iter.hasNext());
assertEquals(expected[i], iter.nextInt());
assertEquals(element, iter.nextInt());
}
assertFalse(iter.hasNext());
@ -108,9 +108,9 @@ public class DynamicHasherTest {
final OfInt iter = hasher.getBits(shape);
for (int i = 0; i < expected.length; i++) {
for (final int element : expected) {
assertTrue(iter.hasNext());
assertEquals(expected[i], iter.nextInt());
assertEquals(element, iter.nextInt());
}
assertFalse(iter.hasNext());

View File

@ -124,9 +124,9 @@ public class StaticHasherTest {
final StaticHasher hasher = new StaticHasher(Arrays.stream(input).iterator(), shape);
final OfInt iter = hasher.getBits(shape);
for (int i = 0; i < expected.length; i++) {
for (final int element : expected) {
assertTrue(iter.hasNext());
assertEquals(expected[i], iter.nextInt());
assertEquals(element, iter.nextInt());
}
assertFalse(iter.hasNext());
}
@ -282,9 +282,9 @@ public class StaticHasherTest {
final StaticHasher hasher = new StaticHasher(testHasher, shape);
final OfInt iter = hasher.getBits(shape);
for (int i = 0; i < expected.length; i++) {
for (final int element : expected) {
assertTrue(iter.hasNext());
assertEquals(expected[i], iter.nextInt());
assertEquals(element, iter.nextInt());
}
assertFalse(iter.hasNext());
}