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