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
@@ -6,9 +6,9 @@ import static java.util.Arrays.asList;
public class Main {
public static boolean test(List<List<String>> list) {
for (List<String> x: list) {
for (List<String> x : list) {
if (x != null) {
for (String s: x) {
for (String s : x) {
if (s.startsWith("a")) {
return true;
}
@@ -19,7 +19,7 @@ public class Main {
}
String testTernary(String[] strings) {
for (String s: strings) {
for (String s : strings) {
if (s != null) {
if (!s.startsWith("xyz")) {
return "s";