mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 20:01:20 +07:00
- support more cases GitOrigin-RevId: 28301b79d4c4acd343a35474d1ab44096dcea8cd
12 lines
258 B
Java
12 lines
258 B
Java
// "Replace cast expressions with pattern variable" "true"
|
|
import java.util.*;
|
|
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer integer && integer.intValue() == 1) {
|
|
doSomething(integer);
|
|
}
|
|
}
|
|
|
|
void doSomething(Integer i) {}
|
|
} |