mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
15 lines
259 B
Java
15 lines
259 B
Java
// "Remove redundant initializer" "true-preview"
|
|
class A {
|
|
void test2(){
|
|
|
|
String str = switch<caret> (1) {
|
|
case 1 -> "a";
|
|
default ->
|
|
{
|
|
str = "b";
|
|
System.out.println(str);
|
|
yield str + "c";
|
|
}
|
|
};
|
|
}
|
|
} |