mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java-formatter] do not add empty call chunks, fixes IDEA-158331, yellow code removed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class A {
|
||||
}
|
||||
|
||||
class B {
|
||||
}
|
||||
|
||||
public class Main {
|
||||
void user() {
|
||||
method(, new B());
|
||||
}
|
||||
|
||||
void <caret>method(A a, B b) {
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
class A {
|
||||
void method(B b) {
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
}
|
||||
|
||||
public class Main {
|
||||
void user() {
|
||||
.method(new B());
|
||||
}
|
||||
|
||||
}
|
||||
+2
@@ -59,6 +59,8 @@ public class MoveInstanceMethodTest extends LightRefactoringTestCase {
|
||||
public void testOverloadingMethods1() throws Exception { doTest(true, 0); }
|
||||
|
||||
public void testPolyadicExpr() throws Exception { doTest(true, 0); }
|
||||
|
||||
public void testIOOBE_MovingInvalidCode() throws Exception { doTest(true, 0); }
|
||||
|
||||
public void testEscalateVisibility() throws Exception {
|
||||
doTest(true, 0, VisibilityUtil.ESCALATE_VISIBILITY);
|
||||
|
||||
Reference in New Issue
Block a user