mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce: process chained method calls during same occurrences processing (IDEA-124349)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class Test {
|
||||
|
||||
private void test() {
|
||||
TestSubject subject = new TestSubject();
|
||||
boolean flag = false;
|
||||
|
||||
if (subject.getSubject2().get<caret>Val() != flag) {
|
||||
System.out.println(subject.getSubject2().getVal());
|
||||
}
|
||||
}
|
||||
|
||||
public static class TestSubject {
|
||||
public TestSubject2 getSubject2() {
|
||||
return new TestSubject2();
|
||||
}
|
||||
}
|
||||
|
||||
public static class TestSubject2 {
|
||||
public boolean getVal() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
class Test {
|
||||
|
||||
private void test(boolean val) {
|
||||
TestSubject subject = new TestSubject();
|
||||
boolean flag = false;
|
||||
|
||||
if (val != flag) {
|
||||
System.out.println(val);
|
||||
}
|
||||
}
|
||||
|
||||
public static class TestSubject {
|
||||
public TestSubject2 getSubject2() {
|
||||
return new TestSubject2();
|
||||
}
|
||||
}
|
||||
|
||||
public static class TestSubject2 {
|
||||
public boolean getVal() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user