mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
13 lines
277 B
Java
13 lines
277 B
Java
// "Create method 'isEmpty' in 'Main'" "true-preview"
|
|
class Main {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case String s when isEmpty(s) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
|
|
private boolean isEmpty(String s) {
|
|
return false;
|
|
}
|
|
} |