No functional change.
When Adrian removed finished removing Javolution from the base component at r1635910 https://s.apache.org/cwfE he routinely changed FastList to LinkedList and FastMap to HashMap. Actually those are just duplicates of ArrayList for LinkedList and strictly HashMap for, er, HashMap. This removes those useless line from the tests. I wodered about it, but I hope noone will argue that we should keep LinkedList, obviously ArrayList is enough there as a List implementation. With this change the words fastlist and fastmap (case insensitive) no longer exists in any OOTB files. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794504 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -22,7 +22,6 @@ import java.math.BigDecimal;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -77,27 +76,20 @@ public class MiscTests extends GenericTestCaseBase {
|
||||
List<String> baseList = UtilMisc.toList("a", "1", "b", "2", "c", "3");
|
||||
List<String> arrayList = new ArrayList<String>();
|
||||
arrayList.addAll(baseList);
|
||||
List<String> fastList = new LinkedList<String>();
|
||||
fastList.addAll(baseList);
|
||||
Map<String, String> baseMap = UtilMisc.toMap("a", "1", "b", "2", "c", "3");
|
||||
Map<String, String> hashMap = new HashMap<String, String>();
|
||||
hashMap.putAll(baseMap);
|
||||
Map<String, String> fastMap = new HashMap<String, String>();
|
||||
fastMap.putAll(baseMap);
|
||||
Object[] testObjects = new Object[] {
|
||||
string,
|
||||
bigDecimal,
|
||||
url,
|
||||
arrayList,
|
||||
fastList,
|
||||
hashMap,
|
||||
fastMap,
|
||||
hashMap
|
||||
};
|
||||
for (Object testObject: testObjects) {
|
||||
assertPassThru(testObject, testObject.getClass());
|
||||
}
|
||||
assertPassThru(fastList, fastList.getClass(), List.class);
|
||||
assertPassThru(fastMap, fastMap.getClass(), Map.class);
|
||||
assertPassThru(arrayList, arrayList.getClass(), List.class);
|
||||
assertPassThru(hashMap, hashMap.getClass(), Map.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user