From 2886912fd00e7d4f0dc50af8ff17cbde0007a382 Mon Sep 17 00:00:00 2001 From: Jay Arthanareeswaran Date: Mon, 11 Nov 2024 21:21:43 +0530 Subject: [PATCH] Upgrade the testcase to compliance 14 since switch expressions #1792 https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/1794 --- .../eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java index 9a634ca7551..a6b1707192c 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2019, 2020 IBM Corporation and others. + * Copyright (c) 2019, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -126,7 +126,7 @@ enum Day { public void testSplitSwitchCaseLabelRuleStatement() throws Exception { fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin"); fJProject1.setRawClasspath(projectSetup.getDefaultClasspath(), null); - JavaProjectHelper.set12CompilerOptions(fJProject1, true); + JavaProjectHelper.set14CompilerOptions(fJProject1, true); fSourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src"); String str= """