aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/main/java/org/aspectj/util/LangUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/src/main/java/org/aspectj/util/LangUtil.java b/util/src/main/java/org/aspectj/util/LangUtil.java
index 7151c092b..97676ea84 100644
--- a/util/src/main/java/org/aspectj/util/LangUtil.java
+++ b/util/src/main/java/org/aspectj/util/LangUtil.java
@@ -187,6 +187,10 @@ public class LangUtil {
return 20 <= vmVersion;
}
+ public static boolean is21VMOrGreater() {
+ return 21 <= vmVersion;
+ }
+
/**
* Shorthand for "if null, throw IllegalArgumentException"
*