mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
IDEA-193288 Inspection to detect Xyz.class.isInstance(foo) and Xyz.class.cast(foo)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with '(Integer)'" "true"
|
||||
class X {
|
||||
void test(Object obj) {
|
||||
if(Integer.class.isInstance(obj)) {
|
||||
System.out.println((Integer) obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user