diff options
author | aclement <aclement> | 2008-05-12 16:50:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-12 16:50:22 +0000 |
commit | 139d7d337d63ce0b7d49525476be3a144dd995e5 (patch) | |
tree | 128363f663e6000f5ae111f597d03529342426d7 /util | |
parent | a66b44fe27854d4e2c0abeda3a0eae843dba076b (diff) | |
download | aspectj-139d7d337d63ce0b7d49525476be3a144dd995e5.tar.gz aspectj-139d7d337d63ce0b7d49525476be3a144dd995e5.zip |
231396: refactoring: CollectionUtil type removed
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/CollectionUtil.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/util/src/org/aspectj/util/CollectionUtil.java b/util/src/org/aspectj/util/CollectionUtil.java deleted file mode 100644 index a8efa591d..000000000 --- a/util/src/org/aspectj/util/CollectionUtil.java +++ /dev/null @@ -1,60 +0,0 @@ -/* ******************************************************************* - * Copyright (c) 1999-2001 Xerox Corporation, - * 2002 Palo Alto Research Center, Incorporated (PARC). - * All rights reserved. - * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Xerox/PARC initial implementation - * ******************************************************************/ - - -package org.aspectj.util; - - -import java.util.*; - -public class CollectionUtil { - public static final String[] NO_STRINGS = new String[0]; - - - public static List getListInMap(Map map, Object key) { - List list = (List)map.get(key); - if (list == null) { - list = new ArrayList(); - map.put(key, list); - } - return list; - } - - public static SortedSet getSortedSetInMap(Map map, Object key) { - SortedSet list = (SortedSet)map.get(key); - if (list == null) { - list = new TreeSet(); - map.put(key, list); - } - return list; - } - - public static Set getSetInMap(Map map, Object key) { - Set list = (Set)map.get(key); - if (list == null) { - list = new HashSet(); - map.put(key, list); - } - return list; - } - - public static Map getMapInMap(Map map, Object key) { - Map list = (Map)map.get(key); - if (list == null) { - list = new HashMap(); - map.put(key, list); - } - return list; - } - -} |