set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests

This commit is contained in:
Roman.Ivanov
2018-06-26 12:04:00 +07:00
parent c59f936afc
commit 5076e08145
110 changed files with 304 additions and 304 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.) {
for (File file1 : file.) {
}
}
@@ -5,7 +5,7 @@ class BarGoo {}
class Foo {
{
List<BarGoo> goos;
for (BarGoo goo: goos) {
for (BarGoo goo : goos) {
}
}
@@ -6,7 +6,7 @@ public class C {
}
void foo(List<Inner> inners) {
for (Inner inner: inners) {
for (Inner inner : inners) {
}
}
@@ -4,7 +4,7 @@ public class LiveTemplateTest {
void one() {
List<A.B<String>> list;
for (A.B<String> stringB: list) {
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: val) {
for (T t : val) {
}
}
@@ -1,7 +1,7 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
for (int x: xs) {
for (int x : xs) {
}
xs = new int[0];
@@ -1,7 +1,7 @@
public class Foo {
void m() {
Object[] xs = new Object[]{1, 2, 3};
for (final Object x: xs) {
for (final Object x : xs) {
}
}
@@ -3,7 +3,7 @@ class Example {
new Runnable() {
@Override
public void run() {
for (T t: foo) {
for (T t : foo) {
}
}
@@ -1,7 +1,7 @@
public class Foo {
void m() {
int[] xs = {1, 2, 3};
for (int x: xs) {
for (int x : xs) {
}
}
@@ -3,7 +3,7 @@ import java.util.ArrayList;
class Test {
public static void main(String[] args) {
ArrayList<Object> list = new ArrayList<Object>();
for (Object o: list) {
for (Object o : list) {
}
}