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
@@ -10,7 +10,7 @@ public class Main {
public long testCount(List<String> list) {
long count = 0L;
Set<String> uniqueValues = new HashSet<>();
for (String s: list) {
for (String s : list) {
if (uniqueValues.add(s)) {
count++;
}
@@ -21,7 +21,7 @@ public class Main {
private static List<Object> testToList(List<? extends Number> numbers) {
List<Object> list = new ArrayList<>();
Set<Number> uniqueValues = new HashSet<>();
for (Number number: numbers) {
for (Number number : numbers) {
if (uniqueValues.add(number)) {
list.add(number);
}