mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
13 lines
281 B
Java
13 lines
281 B
Java
// "Wrap using 'Boolean.parseBoolean()'" "true-preview"
|
|
public class TestGuard {
|
|
public void ahem(Object obj) {
|
|
switch(obj) {
|
|
case String s when Boolean.parseBoolean(foo(s)) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
|
|
private String foo(String s) {
|
|
return "false";
|
|
}
|
|
} |