aboutsummaryrefslogtreecommitdiff
path: root/test/core/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-03-07 01:10:03 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-03-07 01:12:24 +0100
commit8bfbd7fa846537c9393350e02c459c6878c0dec2 (patch)
treecd45d63bc2503ce51e32f1ce84759250a9ad62e9 /test/core/src/lombok
parenteb91f71e830900f9ce76456f54f97f3988a8906a (diff)
downloadlombok-8bfbd7fa846537c9393350e02c459c6878c0dec2.tar.gz
lombok-8bfbd7fa846537c9393350e02c459c6878c0dec2.tar.bz2
lombok-8bfbd7fa846537c9393350e02c459c6878c0dec2.zip
fixded the version mess in the test framework.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r--test/core/src/lombok/AbstractRunTests.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java
index 5c5ba898..1a454585 100644
--- a/test/core/src/lombok/AbstractRunTests.java
+++ b/test/core/src/lombok/AbstractRunTests.java
@@ -62,8 +62,6 @@ public abstract class AbstractRunTests {
try {
sourceDirectives = LombokTestSource.readDirectives(file);
if (sourceDirectives.isIgnore()) return null;
- if (!sourceDirectives.versionWithinLimit(params.getVersion())) return null;
- if (!sourceDirectives.versionWithinLimit(getClasspathVersion())) return null;
if (!sourceDirectives.versionWithinLimit(version)) return null;
if (!sourceDirectives.runOnPlatform(platform)) return null;
} catch (AssertionError ae) {
@@ -101,22 +99,6 @@ public abstract class AbstractRunTests {
};
}
- private static int getClasspathVersion() {
- try {
- Class.forName("java.lang.AutoCloseable");
- } catch (ClassNotFoundException e) {
- return 6;
- }
-
- try {
- Class.forName("java.util.stream.Stream");
- } catch (ClassNotFoundException e) {
- return 7;
- }
-
- return 8;
- }
-
protected abstract boolean transformCode(Collection<CompilerMessage> messages, StringWriter result, File file, String encoding, Map<String, String> formatPreferences) throws Throwable;
protected String readFile(File file) throws IOException {