Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingSealedClassSwitchBranches/beforeDominatingPatternPresent.java
Bas Leijdekkers bd7f1f4270 Java: proper order of 'true' and 'false' in quick-fix name (IDEA-357973)
also fixes internationalization and the incorrect comma in the name
for "Create missing switch branches" quick-fix

GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
2024-08-21 09:12:08 +00:00

17 lines
381 B
Java

// "Create missing branch 'Sub1'" "true-preview"
sealed interface I {}
sealed interface J extends I {}
final class Sub1 implements I {}
final class Sub2 implements I {}
final class Sub3 implements I, J {}
class Test {
void test(I i) {
switch (i<caret>) {
case Sub2 sub2:
break;
case J j:
break;
}
}
}