IDEA-126726 "Complete current statement" always adds a newline

* rollback the fix for IDEA-119926
This commit is contained in:
peter
2014-07-08 13:13:51 +02:00
parent 8342911e2a
commit 02fdc91a10
17 changed files with 17 additions and 38 deletions
@@ -3,7 +3,6 @@ class Foo {
abstract void a();
{
a();
<caret>
a();<caret>
}
}
@@ -3,7 +3,6 @@ class Foo {
abstract void a();
{
a();
<caret>
a();<caret>
}
}
@@ -1,6 +1,5 @@
public class Foo {
public void fails() {
boolean[] a = new boolean[f()];
<caret>
boolean[] a = new boolean[f()];<caret>
}
}
@@ -3,7 +3,6 @@ public class test {
int k1 = 1;
int k2 = 2;
int[] array = new int[]{k1, k2};
<caret>
System.out.print(k1);
}
@@ -1,6 +1,5 @@
public class Test {
public int foo(int i) {
int ii = foo(0);
<caret>
int ii = foo(0);<caret>
}
}
@@ -1,7 +1,6 @@
public class Foo {
public void foo() {
foo();
<caret>
foo();<caret>
// some line comment
}
}
@@ -1,7 +1,6 @@
public class Junk {
public static void main(String[] args) {
int i = 1; // comment
<caret>
int i = 1; // comment<caret>
}
}
@@ -1,7 +1,6 @@
public class Junk {
public static void main(String[] args) {
int[] arr = new int[]{1, 2, 3};
<caret>
int[] arr = new int[]{1, 2, 3};<caret>
}
}
@@ -1,8 +1,7 @@
public class Foo {
{
foo();
<caret>
foo();<caret>
foo();
}
}
@@ -1,7 +1,6 @@
class Test {
Object method() {
method(
factory());
<caret>
factory());<caret>
}
}
@@ -1,7 +1,6 @@
class foo {
{
Object d = ((String) new String());
<caret>
Object d = ((String) new String());<caret>
}
}
@@ -1,7 +1,6 @@
class Foo {
{
tx2 = (long) (vcx + vw);
<caret>
tx2 = (long) (vcx + vw);<caret>
}
}
@@ -1,7 +1,6 @@
class foo {
{
String s = "a";
<caret>
String s = "a";<caret>
}
}