diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-10-01 17:51:45 +0200 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-10-01 17:51:45 +0200 |
commit | c540b0f60ef5e46b33cad1b23c36d1c51af82aef (patch) | |
tree | eb4af7ee7b7b8a2e3e1c2fdb6d9635acb44f7cc0 /util/src | |
parent | 21d651573103fee74dec9b01c36ad3932d355bcf (diff) | |
download | aspectj-c540b0f60ef5e46b33cad1b23c36d1c51af82aef.tar.gz aspectj-c540b0f60ef5e46b33cad1b23c36d1c51af82aef.zip |
First Java 19 version, barely tested.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/main/java/org/aspectj/util/LangUtil.java | 4 |
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 d916002b6..944e95040 100644 --- a/util/src/main/java/org/aspectj/util/LangUtil.java +++ b/util/src/main/java/org/aspectj/util/LangUtil.java @@ -182,6 +182,10 @@ public class LangUtil { return 19 <= vmVersion; } + public static boolean is20VMOrGreater() { + return 20 <= vmVersion; + } + /** * Shorthand for "if null, throw IllegalArgumentException" * |