From 45d3ec5af95f8bec25af217da3e9678fa43977ee Mon Sep 17 00:00:00 2001 From: Mikhail Pyltsin Date: Fri, 7 Jul 2023 16:10:19 +0200 Subject: [PATCH] [java-highlighting] IDEA-324552 `Create missing switch branch` produces incorrect code GitOrigin-RevId: 256fd781c3534a0a0a1902b627da0142608a7f1d --- .../afterRecordSelectorNonEmptySwitch.java | 2 +- .../afterRecordSelectorNonEmptySwitchNull.java | 2 +- .../beforeRecordSelectorNonEmptySwitch.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitch.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitch.java index 070b12813707..3ccaf0c4b9a3 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitch.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitch.java @@ -1,4 +1,4 @@ -// "Create missing branches: 'Pair(D x, C y)', and 'Pair(C x, C y)'" "true-preview" +// "Create missing branches: 'Pair(C x, C y)', and 'Pair(D x, C y)'" "true-preview" sealed interface I permits C, D {} final class C implements I {} final class D implements I {} diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitchNull.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitchNull.java index a3705bb63ef3..808db4d26751 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitchNull.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/afterRecordSelectorNonEmptySwitchNull.java @@ -1,4 +1,4 @@ -// "Create missing branches: 'Pair(D x, C y)', and 'Pair(C x, C y)'" "true-preview" +// "Create missing branches: 'Pair(C x, C y)', and 'Pair(D x, C y)'" "true-preview" sealed interface I permits C, D {} final class C implements I {} final class D implements I {} diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/beforeRecordSelectorNonEmptySwitch.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/beforeRecordSelectorNonEmptySwitch.java index ee93a3702999..f0b794793b43 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/beforeRecordSelectorNonEmptySwitch.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingDeconstructionRecordClassBranches/beforeRecordSelectorNonEmptySwitch.java @@ -1,4 +1,4 @@ -// "Create missing branches: 'Pair(D x, C y)', and 'Pair(C x, C y)'" "true-preview" +// "Create missing branches: 'Pair(C x, C y)', and 'Pair(D x, C y)'" "true-preview" sealed interface I permits C, D {} final class C implements I {} final class D implements I {}