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