mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
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) {}
|
|
} |