mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 19:42:48 +07:00
e4d0585b15
GitOrigin-RevId: b34a0cd0671483151e4db2e0c14df115d471e108
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";
|
|
}
|
|
} |