mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 04:45:04 +07:00
GitOrigin-RevId: 840ad7d5fe656b7cc443b67df30f60b0bb35b41d
14 lines
341 B
Java
14 lines
341 B
Java
// "Fix all 'Statement can be replaced with enhanced 'switch'' problems in file" "true"
|
|
import java.util.*;
|
|
|
|
class EndOfLineComment {
|
|
public static String m(int x) {
|
|
return switch (x) {
|
|
case 0 -> "foo";
|
|
default -> {
|
|
System.out.print("bar"); // !
|
|
yield "bar";
|
|
}
|
|
};
|
|
}
|
|
} |