fix tests for foreach formatting

This commit is contained in:
Roman.Ivanov
2018-06-05 11:31:17 +07:00
parent 8e9ab59fc8
commit 5858ba478c
85 changed files with 280 additions and 280 deletions
@@ -4,7 +4,7 @@ import java.util.Map;
class Foo {
void foo(Map<File, Object> files, File file, Object filx) {
for (File file1 : file.<caret>) {
for (File file1: file.) {
}
}
@@ -5,8 +5,8 @@ class BarGoo {}
class Foo {
{
List<BarGoo> goos;
for (BarGoo goo : goos) {
<caret>
for (BarGoo goo: goos) {
}
}
}
@@ -6,7 +6,7 @@ public class C {
}
void foo(List<Inner> inners) {
for (Inner <selection>inner<caret></selection> : inners) {
for (Inner inner: inners) {
}
}
@@ -4,7 +4,7 @@ public class LiveTemplateTest {
void one() {
List<A.B<String>> list;
for (A.B<String> stringB : <selection>list</selection><caret>) {
for (A.B<String> stringB: list) {
}
}
@@ -4,7 +4,7 @@ class Foo {
<T> void method1(final T[] val) {
class Inner {
void method2() {
for (T t : <selection>val</selection><caret>) {
for (T t: val) {
}
}
@@ -1,8 +1,8 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
for (int x : xs) {
<caret>
for (int x: xs) {
}
xs = new int[0];
}
@@ -1,8 +1,8 @@
public class Foo {
void m() {
Object[] xs = new Object[]{1, 2, 3};
for (final Object x : xs) {
<caret>
for (final Object x: xs) {
}
}
}
@@ -3,8 +3,8 @@ class Example {
new Runnable() {
@Override
public void run() {
for (T t : foo) {
<caret>
for (T t: foo) {
}
}
};
@@ -1,8 +1,8 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
for (int x : xs) {
<caret>
for (int x: xs) {
}
}
}
@@ -3,8 +3,8 @@ import java.util.ArrayList;
class Test {
public static void main(String[] args) {
ArrayList<Object> list = new ArrayList<Object>();
for (Object o : list) {
<caret>
for (Object o: list) {
}
}
}