diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 10:22:10 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-19 11:21:19 +0700 |
commit | 198957fd26d1e5cd347c0c1c3a0c9100295af4cf (patch) | |
tree | 38e4be75f6abf612b04cf4a938607a5acbe5f370 /tests/src/test/java/org/aspectj/systemtest/ajc196 | |
parent | 08d0c4435b61512f55f8d0e357b09496fdbe155a (diff) | |
download | aspectj-198957fd26d1e5cd347c0c1c3a0c9100295af4cf.tar.gz aspectj-198957fd26d1e5cd347c0c1c3a0c9100295af4cf.zip |
LangUtil: remove methods like 'is11VMOrGreater', 'is1dot5VMOrGreater'
Replace them by a uniform method 'isVMGreaterOrEqual(double)', also
overloaded for int.
This gets rid of one 'AspectJ_JDK_Update' tag. One less place to check
and update with each newly supported Java version. :-)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc196')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java b/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java index d3cbfb9ab..8e19afc14 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java @@ -19,13 +19,13 @@ public class AllTestsAspectJ196 { public static Test suite() { TestSuite suite = new TestSuite("AspectJ 1.9.6 tests"); - if (LangUtil.is14VMOrGreater()) { + if (LangUtil.isVMGreaterOrEqual(14)) { suite.addTest(Ajc196Tests.suite()); suite.addTest(SanityTestsJava14.suite()); } // Do not run tests using a previous compiler's preview features anymore. They would all fail. /* - if (LangUtil.is14VMOrGreater() && !LangUtil.is15VMOrGreater()) { + if (LangUtil.isVMGreaterOrEqual(14) && !LangUtil.isVMGreaterOrEqual(15)) { suite.addTest(Java14PreviewFeaturesTests.suite()); } */ |