mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 02:50:55 +07:00
13 lines
266 B
Java
13 lines
266 B
Java
// "Wrap using 'Boolean.parseBoolean()'" "true-preview"
|
|
public class TestGuard {
|
|
public void ahem(Object obj) {
|
|
switch(obj) {
|
|
case String s when <caret>foo(s) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
|
|
private String foo(String s) {
|
|
return "false";
|
|
}
|
|
} |