do not suggest child type if instanceof inside selected block; if child type suggested then insert cast in method call

This commit is contained in:
anna
2010-11-11 14:17:57 +03:00
parent 46314ea90a
commit 0f0adb32b7
7 changed files with 52 additions and 5 deletions
@@ -0,0 +1,11 @@
public class Test {
void foo(Object o) {
if (o instanceof A) {
<selection>((A)o).bar();</selection>
}
}
}
class A {
void bar(){}
}