StreamToLoop: inline simple common method references

This commit is contained in:
Tagir Valeev
2016-12-19 18:41:57 +07:00
parent eb5ed0f3f1
commit a94e87e968
23 changed files with 91 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ public class Main {
private static void test(List<String> list) {
StringBuilder sb = new StringBuilder();
for (String str : list) {
if (Objects.nonNull(str)) {
if (str != null) {
sb.append(str);
}
}