Files
openide/java/java-tests/testData/inspection/duplicateBranchesInSwitchFix/afterLeftoverComments.java
Mikhail Pyltsinandintellij-monorepo-bot 0f76470f19 [java-inspections] IDEA-333452 Duplicate branch on switch. Improve work with comments
- now it can be suppressed properly
- show info level if the branches have different comments

GitOrigin-RevId: 5f1c5c0a67165b949b894d2d81c53800ad3b4b22
2023-09-27 19:37:38 +00:00

13 lines
268 B
Java

// "Merge with 'case 1'" "INFORMATION"
class C {
String foo(int n) {
switch (n) {
case 1, 2:
foo(); // same comment
return "A";
// another comment
}
return "";
}
void foo(){}
}