mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
12 lines
216 B
Java
12 lines
216 B
Java
// "Replace with 'yield'" "false"
|
|
class X {
|
|
int test(String s) {
|
|
return switch (s) {
|
|
case "foo" -> {
|
|
System.out.println("hello");
|
|
return<caret>;
|
|
}
|
|
case "bar" -> 2;
|
|
};
|
|
}
|
|
} |