Removing null checks as suggested by editor for BAEL-3083
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user