diff --git a/java/java-psi-impl/resources/messages/JavaErrorBundle.properties b/java/java-psi-impl/resources/messages/JavaErrorBundle.properties
index 7e0770cd6d31..d172521f4f8f 100644
--- a/java/java-psi-impl/resources/messages/JavaErrorBundle.properties
+++ b/java/java-psi-impl/resources/messages/JavaErrorBundle.properties
@@ -318,7 +318,7 @@ unclosed.comment=Unclosed comment
exception.already.caught=Exception ''{0}'' has already been caught
exception.must.be.disjoint=Types in multi-catch must be disjoint: ''{0}'' is a subclass of ''{1}''
statement.must.be.prepended.with.case.label=Statement must be prepended with case label
-different.case.kinds.in.switch=Different case kinds used in the switch
+different.case.kinds.in.switch=Different 'case' kinds used in 'switch'
void.type.is.not.allowed='void' type is not allowed here
single.import.class.conflict=''{0}'' is already defined in a single-type import
numeric.overflow.in.expression=Numeric overflow in expression
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/EnhancedSwitchStatements.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/EnhancedSwitchStatements.java
index acc60859d02c..6b36aebdb16d 100644
--- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/EnhancedSwitchStatements.java
+++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/EnhancedSwitchStatements.java
@@ -19,11 +19,11 @@ class EnhancedSwitchStatements {
}
switch (new Random().nextInt()) {
case 0 -> throw new IllegalStateException("no args");
- case 1: break;
+ case 1: break;
}
switch (new Random().nextInt()) {
case 0: throw new IllegalStateException("no args"); break;
- case 1 -> { System.out.println("one"); }
+ case 1 -> { System.out.println("one"); }
}
{ case 11 -> System.out.println("hi there"); }
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/SwitchExpressions.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/SwitchExpressions.java
index f11df0031a19..f603315829cd 100644
--- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/SwitchExpressions.java
+++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/switchExpressions/SwitchExpressions.java
@@ -12,7 +12,7 @@ class SwitchExpressions {
System.out.println(switch (new Random().nextInt()) {
case 0 -> throw new IllegalStateException("no args");
- case 1: yield "lone";
+ case 1: yield "lone";
});
System.out.println(