mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore new expressions correctly (IDEA-97001)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
public class MyClass {
|
||||
public void test() {
|
||||
if (new In<caret>ner().isWriteReplace()) {
|
||||
return new Inner().writeReplace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private class Inner {
|
||||
public boolean isWriteReplace() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean writeReplace() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
public class MyClass {
|
||||
|
||||
private Inner inner;
|
||||
|
||||
public void test() {
|
||||
inner = new Inner();
|
||||
if (inner.isWriteReplace()) {
|
||||
return inner.writeReplace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private class Inner {
|
||||
public boolean isWriteReplace() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean writeReplace() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user