You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/03/17 20:39:30 UTC
svn commit: r1457540 - in
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections:
ListUtils.java MapUtils.java SetUtils.java
Author: tn
Date: Sun Mar 17 19:39:30 2013
New Revision: 1457540
URL: http://svn.apache.org/r1457540
Log:
[COLLECTIONS-351] Remove EMPTY_LIST, EMPTY_SET and EMPTY_MAP.
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MapUtils.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/SetUtils.java
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java?rev=1457540&r1=1457539&r2=1457540&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java Sun Mar 17 19:39:30 2013
@@ -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;
@@ -41,13 +40,6 @@ import org.apache.commons.collections.li
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.
*/
private ListUtils() {}
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MapUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MapUtils.java?rev=1457540&r1=1457539&r2=1457540&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MapUtils.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/MapUtils.java Sun Mar 17 19:39:30 2013
@@ -77,12 +77,6 @@ import org.apache.commons.collections.ma
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.
*/
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/SetUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/SetUtils.java?rev=1457540&r1=1457539&r2=1457540&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/SetUtils.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/SetUtils.java Sun Mar 17 19:39:30 2013
@@ -40,13 +40,6 @@ import org.apache.commons.collections.se
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
* @return an empty Set