Java: Fixed duplicate matching for complex expressions (IDEA-188127)

This commit is contained in:
Pavel Dolgov
2018-03-14 18:21:30 +03:00
parent c0e863d609
commit e0b966650e
4 changed files with 37 additions and 0 deletions
@@ -0,0 +1,17 @@
class CallChainExpression {
String foo() {
String s = newMethod();
System.out.println(s);
return s;
}
private String newMethod() {
return A.a().b().c;
}
static class A {
static A a() { return new A(); }
A b() { return this; }
String c = "";
}
}