Removing null checks as suggested by editor for BAEL-3083

This commit is contained in:
caroline
2019-09-24 15:05:06 +02:00
parent 48cc9a4409
commit b27a5ae4cd

View File

@@ -47,7 +47,6 @@ public class FindAStringInGivenList {
List<String> matchingElements =
list.stream()
.filter(str -> search != null)
.filter(str -> str.trim().contains(search))
.collect(Collectors.toList());