Files
openide/java/java-tests/testData/inspection/duplicateBranchesInEnhancedSwitch/CaseLabelsExpressionDifferentComments.java
Roman Shevchenko 808760e6ec [java] 'yield' statements support in the 'duplicated switch branches' inspection
GitOrigin-RevId: 02c6103423343552dee71943186e576dc06561ce
2019-07-02 06:52:16 +03:00

14 lines
237 B
Java

class C {
void test(int n) {
String s = switch (n) {
case 1:
yield "a"; // one comment
case 2:
yield "b";
case 3:
yield "a"; // another comment
default:
yield "";
};
}
}