diff options
Diffstat (limited to 'org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java')
-rw-r--r-- | org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java index 268792e241..56cb0d810f 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingSwitchExpressionsTest.java @@ -55,11 +55,14 @@ public class ASTRewritingSwitchExpressionsTest extends ASTRewritingTest { return createSuite(ASTRewritingSwitchExpressionsTest.class); } - @SuppressWarnings("deprecation") @Override protected void setUp() throws Exception { super.setUp(); - if (this.apiLevel == AST_INTERNAL_JLS14 ) { + if (this.apiLevel == AST_INTERNAL_JLS15 ) { + this.project1.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_15); + this.project1.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_15); + this.project1.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_15); + } else if (this.apiLevel == AST_INTERNAL_JLS14 ) { this.project1.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_14); this.project1.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_14); this.project1.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_14); @@ -230,9 +233,9 @@ public class ASTRewritingSwitchExpressionsTest extends ASTRewritingTest { @SuppressWarnings("rawtypes") public void testSwitchExpressions_03_since_12() throws Exception { - if (this.apiLevel == AST_INTERNAL_JLS15) { - return; - } + /* + * if (this.apiLevel == AST_INTERNAL_JLS15) { return; } + */ IPackageFragment pack1= this.sourceFolder.createPackageFragment("test1", false, null); String s = "package test1;\n"+ @@ -402,9 +405,9 @@ public class ASTRewritingSwitchExpressionsTest extends ASTRewritingTest { } @SuppressWarnings("rawtypes") public void testSwitchExpressions_04_since_12() throws Exception { - if (this.apiLevel == AST_INTERNAL_JLS15) { - return; - } + /* + * if (this.apiLevel == AST_INTERNAL_JLS15) { return; } + */ IPackageFragment pack1= this.sourceFolder.createPackageFragment("test1", false, null); String s = "package test1;\n"+ "public class X {\n"+ |