IDEA-169269 "Analyze dataflow to here" should process only implementations of current class when analyzing return values for a method call in instance method

This commit is contained in:
Alexey Kudravtsev
2017-03-17 12:07:05 +03:00
parent 0f6736098d
commit b346fc5e2e
3 changed files with 61 additions and 3 deletions
@@ -0,0 +1,21 @@
interface I {
String getValue();
}
abstract class X implements I {
void foo() {
String <caret>s = <flown1>getValue();
}
}
class Y implements I {
public String getValue() {
return "Y";
}
}
class Impl extends X {
public String getValue() {
return <flown11>"Impl";
}
}