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

@@ -11,7 +11,7 @@ public class Main {
long sum = 0;
long count = 0;
for (String s1 : list) {
if (Objects.nonNull(s1)) {
if (s1 != null) {
sum += s1.length();
count++;
}