From 4b0353ad3fc7ce7cfedfd6a36b140fac541c6e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Wed, 24 Jan 2024 13:05:19 +0100 Subject: [PATCH] [test] fix "The switch statement should have a default case" --- .../.settings/org.eclipse.jdt.core.prefs | 2 +- .../ui/genericeditor/tests/contributions/FoldingStrategy.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/org.eclipse.ui.genericeditor.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.ui.genericeditor.tests/.settings/org.eclipse.jdt.core.prefs index 389687aff60..9c8e515282a 100644 --- a/tests/org.eclipse.ui.genericeditor.tests/.settings/org.eclipse.jdt.core.prefs +++ b/tests/org.eclipse.ui.genericeditor.tests/.settings/org.eclipse.jdt.core.prefs @@ -71,7 +71,7 @@ org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=info +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=enabled org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=error diff --git a/tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/FoldingStrategy.java b/tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/FoldingStrategy.java index df834a16aa1..b9148947571 100644 --- a/tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/FoldingStrategy.java +++ b/tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/contributions/FoldingStrategy.java @@ -143,6 +143,8 @@ private List getNewPositionsOfAnnotations(){ searchingFor = SearchingFor.START_OF_TAG; } break; + default: + throw new IllegalStateException(searchingFor.toString()); } currentCharIndex++; }