mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
remove compilator ambiguity
This commit is contained in:
parent
240a53f302
commit
adb63594c8
@ -24,7 +24,7 @@ public class SequenceIteratorTest {
|
||||
public void singleIterator() throws Exception {
|
||||
Iterator<Integer> i = new SequenceIterator<Integer>(Arrays.asList(1).iterator());
|
||||
assertTrue(i.hasNext());
|
||||
assertEquals(1, i.next());
|
||||
assertEquals(1, (int)i.next());
|
||||
assertFalse(i.hasNext());
|
||||
}
|
||||
|
||||
@ -32,11 +32,11 @@ public class SequenceIteratorTest {
|
||||
public void twoIterators() throws Exception {
|
||||
Iterator<Integer> i = new SequenceIterator<Integer>(Arrays.asList(1, 2).iterator(), Arrays.asList(3).iterator());
|
||||
assertTrue(i.hasNext());
|
||||
assertEquals(1, i.next());
|
||||
assertEquals(1, (int)i.next());
|
||||
assertTrue(i.hasNext());
|
||||
assertEquals(2, i.next());
|
||||
assertEquals(2, (int)i.next());
|
||||
assertTrue(i.hasNext());
|
||||
assertEquals(3, i.next());
|
||||
assertEquals(3, (int)i.next());
|
||||
assertFalse(i.hasNext());
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ public class SequenceIteratorTest {
|
||||
public void firstEmpty() throws Exception {
|
||||
Iterator<Integer> i = new SequenceIterator<Integer>(Arrays.<Integer>asList().iterator(), Arrays.asList(3).iterator());
|
||||
assertTrue(i.hasNext());
|
||||
assertEquals(3, i.next());
|
||||
assertEquals(3, (int)i.next());
|
||||
assertFalse(i.hasNext());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user