Files
openide/java/java-tests/testData/inspection/switchExpressionMigration/afterCommentsInTheMiddle.java
2024-08-02 18:19:13 +00:00

18 lines
475 B
Java

// "Fix all 'Statement can be replaced with enhanced 'switch'' problems in file" "true"
import java.util.*;
class CommentsInTheMiddle {
public static String m(int x) {
return switch (x) {
case 0 ->
// first strange comment
"foo";
default -> {
// some strange comment
System.out.print("bar");
// another strange comment
yield "bar";
}
};
}
}