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
@@ -7,7 +7,7 @@ import java.util.LongSummaryStatistics;
public class Main {
public static int test(List<String> list) {
int sum = 0;
for (String s: list) {
for (String s : list) {
System.out.println(s);
int length = s.length();
sum += length;
@@ -17,7 +17,7 @@ public class Main {
public static LongSummaryStatistics testSummaryStatistics(List<String> list) {
LongSummaryStatistics stat = new LongSummaryStatistics();
for (String s: list) {
for (String s : list) {
System.out.println(s);
long length = s.length();
stat.accept(length);