File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
http-api/src/main/java/io/avaje/http/api Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3
3
import java .math .BigDecimal ;
4
4
import java .time .*;
5
5
import java .util .List ;
6
- import java .util .Objects ;
7
6
import java .util .Set ;
8
7
import java .util .UUID ;
9
8
import java .util .function .Function ;
@@ -53,11 +52,11 @@ private static void checkNull(String value) {
53
52
}
54
53
55
54
public static <T > List <T > list (Function <String , T > func , List <String > params ) {
56
- return params .stream ().filter ( Objects :: nonNull ). map (func ).collect (Collectors .toList ());
55
+ return params .stream ().map (func ).collect (Collectors .toList ());
57
56
}
58
57
59
58
public static <T > Set <T > set (Function <String , T > func , List <String > params ) {
60
- return params .stream ().filter ( Objects :: nonNull ). map (func ).collect (Collectors .toSet ());
59
+ return params .stream ().map (func ).collect (Collectors .toSet ());
61
60
}
62
61
63
62
/** Convert to int. */
You can’t perform that action at this time.
0 commit comments