aboutsummaryrefslogtreecommitdiffstats
path: root/util/src
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-10-01 13:22:37 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-10-01 13:22:37 -0700
commit9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53 (patch)
treecb4bfaf7de826280933a898850894464b730c5c0 /util/src
parent0bbb4f252a1efa7408f55e06fc062baddce0dcba (diff)
downloadaspectj-9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53.tar.gz
aspectj-9a3cc2bc5c824d252140fb3d1e2e27f2163e6d53.zip
389967
Diffstat (limited to 'util/src')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java
index 224ca8e02..09aa801f4 100644
--- a/util/src/org/aspectj/util/LangUtil.java
+++ b/util/src/org/aspectj/util/LangUtil.java
@@ -28,6 +28,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
+import java.util.Map;
import java.util.StringTokenizer;
/**
@@ -205,6 +206,11 @@ public class LangUtil {
return ((null == collection) || (0 == collection.size()));
}
+ /** @return ((null == map) || (0 == map.size())) */
+ public static boolean isEmpty(Map<?,?> map) {
+ return ((null == map) || (0 == map.size()));
+ }
+
/**
* Splits <code>text</code> at whitespace.
*