mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-06 22:51:18 +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";
|
|
}
|
|
} |