mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-22 11:13:36 +07:00
4bbd7cf012
IDEA-274106 GitOrigin-RevId: 3f41806bc5eceea7efa2c10bc149f231b4d42262
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;
|
|
}
|
|
} |