No need to initialize to default.
This commit is contained in:
parent
ce0cadd5e2
commit
ac932bb6a7
|
@ -230,7 +230,7 @@ public class ClosureUtilsTest {
|
|||
@Test
|
||||
public void testIfClosure() {
|
||||
MockClosure<Object> a = new MockClosure<>();
|
||||
MockClosure<Object> b = null;
|
||||
MockClosure<Object> b;
|
||||
ClosureUtils.ifClosure(TruePredicate.truePredicate(), a).execute(null);
|
||||
assertEquals(1, a.count);
|
||||
|
||||
|
|
|
@ -202,8 +202,8 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
|||
}
|
||||
final K[] keys = getSampleKeys();
|
||||
final V[] values = getSampleValues();
|
||||
Iterator<K> kit = null;
|
||||
Iterator<V> vit = null;
|
||||
Iterator<K> kit;
|
||||
Iterator<V> vit;
|
||||
|
||||
resetEmpty();
|
||||
map.put(keys[0], values[0]);
|
||||
|
@ -276,8 +276,8 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
|||
}
|
||||
final K[] keys = getSampleKeys();
|
||||
final V[] values = getSampleValues();
|
||||
Iterator<K> kit = null;
|
||||
Iterator<V> vit = null;
|
||||
Iterator<K> kit;
|
||||
Iterator<V> vit;
|
||||
|
||||
resetEmpty();
|
||||
final LRUMap<K, V> lruMap = (LRUMap<K, V>) map;
|
||||
|
|
|
@ -150,8 +150,8 @@ public class ArrayListValuedHashMapTest<K, V> extends AbstractMultiValuedMapTest
|
|||
}
|
||||
|
||||
public void testArrayListValuedHashMap() {
|
||||
ListValuedMap<K, V> listMap = null;
|
||||
ListValuedMap<K, V> listMap1 = null;
|
||||
ListValuedMap<K, V> listMap;
|
||||
ListValuedMap<K, V> listMap1;
|
||||
final Map<K, V> map = new HashMap<>();
|
||||
final Map<K, V> map1 = new HashMap<>();
|
||||
map.put((K) "A", (V) "W");
|
||||
|
|
|
@ -145,9 +145,9 @@ public class HashSetValuedHashMapTest<K, V> extends AbstractMultiValuedMapTest<K
|
|||
|
||||
public void testHashSetValueHashMap_1() {
|
||||
final MultiValuedMap<K, V> map = new ArrayListValuedHashMap<>();
|
||||
SetValuedMap<K, V> map1 = null;
|
||||
SetValuedMap<K, V> map1;
|
||||
final SetValuedMap<K, V> map2 = makeObject();
|
||||
SetValuedMap<K, V> map3 = null;
|
||||
SetValuedMap<K, V> map3;
|
||||
|
||||
map.put((K) "A", (V) "W");
|
||||
map.put((K) "A", (V) "X");
|
||||
|
@ -167,8 +167,8 @@ public class HashSetValuedHashMapTest<K, V> extends AbstractMultiValuedMapTest<K
|
|||
|
||||
public void testHashSetValuedHashMap_2(){
|
||||
final Map<K, V> map = new HashMap<>();
|
||||
SetValuedMap<K, V> map1 = null;
|
||||
SetValuedMap<K, V> map2 = null;
|
||||
SetValuedMap<K, V> map1;
|
||||
SetValuedMap<K, V> map2;
|
||||
|
||||
map.put((K) "A", (V) "W");
|
||||
map.put((K) "B", (V) "X");
|
||||
|
|
Loading…
Reference in New Issue