[java-formatter] do not add empty call chunks, fixes IDEA-158331, yellow code removed

This commit is contained in:
Yaroslav Lepenkin
2016-07-14 13:08:51 +03:00
parent dc497d88f2
commit b75a7e3d72
4 changed files with 56 additions and 22 deletions
@@ -0,0 +1,14 @@
class A {
}
class B {
}
public class Main {
void user() {
method(, new B());
}
void <caret>method(A a, B b) {
}
}
@@ -0,0 +1,14 @@
class A {
void method(B b) {
}
}
class B {
}
public class Main {
void user() {
.method(new B());
}
}
@@ -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);