mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
11 lines
240 B
Java
11 lines
240 B
Java
// "Replace cast expression with existing pattern variable 'i'" "true-preview"
|
|
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer i && i.intValue() == 1) {
|
|
doSomething(1);
|
|
}
|
|
}
|
|
|
|
void doSomething(Integer i) {}
|
|
} |