mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 04:11:31 +07:00
- support comments in the middle GitOrigin-RevId: a56684193791a8dfc086843756796d0cbd5cf571
18 lines
475 B
Java
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";
|
|
}
|
|
};
|
|
}
|
|
} |