mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
change class signature should not touch instanceof statements (IDEA-82661) [roma] (cherry picked from commit dcd5e50)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class ChangeClassSignatureAddParameter {
|
||||
|
||||
public void test(Object object) {
|
||||
if (object instanceof MyClass) {
|
||||
MyClass<String> myClass = (MyClass<String>)object;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class MyClass<T> {
|
||||
}
|
||||
Reference in New Issue
Block a user