MigrateToStreamFix: explicit formatting removed (as formatted anyways automatically)

This commit is contained in:
Tagir Valeev
2018-05-30 18:23:38 +07:00
parent fa47bcb437
commit 3c2cd21d35
151 changed files with 175 additions and 176 deletions
@@ -5,6 +5,6 @@ import java.util.stream.Collectors;
public class Main {
private void test(List<String> strs) {
List<String> other = strs.stream().filter(s -> s.length() > 2).collect(Collectors.toList());
List<String> other = strs.stream().filter(s -> s.length() > 2).collect(Collectors.toList());
}
}
@@ -4,7 +4,7 @@ import java.util.*;
public class Main {
void test(List<String> list) {
int count = (int) list.stream().filter(s -> !s.isEmpty()).count();
int count = (int) list.stream().filter(s -> !s.isEmpty()).count();
System.out.println(count);
}
}
@@ -4,7 +4,7 @@ import java.util.*;
public class Main {
void test(List<String> list) {
String longest = list.stream().max(Comparator.comparingInt(String::length)).orElse(null);
String longest = list.stream().max(Comparator.comparingInt(String::length)).orElse(null);
System.out.println(longest);
}
}
@@ -5,6 +5,6 @@ import java.util.stream.Collectors;
public class Main {
private void test(List<String> other) {
List<String> strs = other.stream().collect(Collectors.toList());
List<String> strs = other.stream().collect(Collectors.toList());
}
}
@@ -5,6 +5,6 @@ import java.util.*;
public class Main {
private void test() {
List<String> strs = new ArrayList<>();
int count = (int) strs.stream().count();
int count = (int) strs.stream().count();
}
}
@@ -6,6 +6,6 @@ import java.util.stream.Collectors;
public class Main {
private void test() {
List<String> strs = new ArrayList<>();
String sb = strs.stream().collect(Collectors.joining());
String sb = strs.stream().collect(Collectors.joining());
}
}
@@ -6,6 +6,6 @@ import java.util.stream.Collectors;
public class Main {
private void test() {
List<String> other = new ArrayList<>();
HashMap<Integer, String> map = other.stream().collect(Collectors.toMap(String::length, s -> s, (a, b) -> a, HashMap::new));
HashMap<Integer, String> map = other.stream().collect(Collectors.toMap(String::length, s -> s, (a, b) -> a, HashMap::new));
}
}