[COLLECTIONS-351] Remove EMPTY_LIST, EMPTY_SET and EMPTY_MAP.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-03-17 19:39:30 +00:00
parent 0de81d9e4c
commit dcda42acf5
3 changed files with 0 additions and 21 deletions

View File

@ -23,7 +23,6 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections.bag.HashBag;
import org.apache.commons.collections.list.FixedSizeList;
@ -40,13 +39,6 @@ import org.apache.commons.collections.list.UnmodifiableList;
*/
public class ListUtils {
/**
* An empty unmodifiable list.
* This uses the {@link Collections Collections} implementation
* and is provided for completeness.
*/
public static final List<Object> EMPTY_LIST = Collections.<Object>emptyList();
/**
* <code>ListUtils</code> should not normally be instantiated.
*/

View File

@ -76,12 +76,6 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
*/
public class MapUtils {
/**
* An empty unmodifiable map.
* This was not provided in JDK1.2.
*/
public static final Map<Object, Object> EMPTY_MAP = UnmodifiableMap.unmodifiableMap(new HashMap<Object, Object>(1));
/**
* An empty unmodifiable sorted map.
* This is not provided in the JDK.

View File

@ -39,13 +39,6 @@ import org.apache.commons.collections.set.UnmodifiableSortedSet;
*/
public class SetUtils {
/**
* An empty unmodifiable set.
* This uses the {@link Collections} implementation
* and is provided for completeness.
*/
public static final Set<?> EMPTY_SET = Collections.EMPTY_SET;
/**
* Get a typed empty unmodifiable Set.
* @param <E> the element type