mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 02:50:55 +07:00
- remove guard if it is always true GitOrigin-RevId: 168a103e93a42c9a82657abffcbd7626047cab3d
14 lines
275 B
Java
14 lines
275 B
Java
// "Remove guard expression" "true-preview"
|
|
class X {
|
|
private static void test2(Object o) {
|
|
switch (o) {
|
|
case String t when tr<caret>ue:
|
|
System.out.println(1);
|
|
break;
|
|
case Object o1:
|
|
System.out.println(1);
|
|
break;
|
|
}
|
|
}
|
|
|
|
} |