From dcda42acf58030359c5c966c311734abeed45875 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 17 Mar 2013 19:39:30 +0000 Subject: [PATCH] [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 --- .../java/org/apache/commons/collections/ListUtils.java | 8 -------- .../java/org/apache/commons/collections/MapUtils.java | 6 ------ .../java/org/apache/commons/collections/SetUtils.java | 7 ------- 3 files changed, 21 deletions(-) diff --git a/src/main/java/org/apache/commons/collections/ListUtils.java b/src/main/java/org/apache/commons/collections/ListUtils.java index 2e0b95a42..0213f6917 100644 --- a/src/main/java/org/apache/commons/collections/ListUtils.java +++ b/src/main/java/org/apache/commons/collections/ListUtils.java @@ -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 EMPTY_LIST = Collections.emptyList(); - /** * ListUtils should not normally be instantiated. */ diff --git a/src/main/java/org/apache/commons/collections/MapUtils.java b/src/main/java/org/apache/commons/collections/MapUtils.java index 1a03a6733..e88b2fe88 100644 --- a/src/main/java/org/apache/commons/collections/MapUtils.java +++ b/src/main/java/org/apache/commons/collections/MapUtils.java @@ -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 EMPTY_MAP = UnmodifiableMap.unmodifiableMap(new HashMap(1)); - /** * An empty unmodifiable sorted map. * This is not provided in the JDK. diff --git a/src/main/java/org/apache/commons/collections/SetUtils.java b/src/main/java/org/apache/commons/collections/SetUtils.java index c27b78049..eb59d721f 100644 --- a/src/main/java/org/apache/commons/collections/SetUtils.java +++ b/src/main/java/org/apache/commons/collections/SetUtils.java @@ -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 the element type