set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests

This commit is contained in:
Roman.Ivanov
2018-06-25 15:57:08 +07:00
parent c59f936afc
commit 5076e08145
110 changed files with 304 additions and 304 deletions

View File

@@ -12,7 +12,7 @@ public class Main {
private static long testFunctionInField(List<String> strings) {
long count = 0L;
for (String string: strings) {
for (String string : strings) {
if (nonEmpty.test(string)) {
count++;
}
@@ -23,7 +23,7 @@ public class Main {
private Set<Identifier> test(Set<Identifier> identifiers) {
Set<Identifier> set = new HashSet<>();
Predicate<? super Identifier> predicate = isReady(identifiers);
for (Identifier identifier: identifiers) {
for (Identifier identifier : identifiers) {
if (predicate.test(identifier)) {
set.add(identifier);
}
@@ -40,9 +40,9 @@ public class Main {
private static long testStreamOfFunctions(List<Predicate<String>> predicates, List<String> strings) {
long count = 0L;
for (Predicate<String> pred: predicates) {
for (Predicate<String> pred : predicates) {
if (pred != null) {
for (String string: strings) {
for (String string : strings) {
if (pred.test(string)) {
count++;
}