mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 12:18:27 +07:00
- support more cases GitOrigin-RevId: 28301b79d4c4acd343a35474d1ab44096dcea8cd
12 lines
239 B
Java
12 lines
239 B
Java
// "Replace cast expression with existing pattern variable 'i'" "true-preview"
|
|
import java.util.*;
|
|
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer i) {
|
|
doSomething(i);
|
|
}
|
|
}
|
|
|
|
void doSomething(Integer i) {}
|
|
} |