-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
None
A DESCRIPTION OF THE PROBLEM :
ofNullable to have a collection as input. So a stream of elements are initialized instead of the collection.
public static <T> Stream<T> ofNullable(Collection<T> collection) {
return collection == null ? Stream.empty() : collection.stream();
}
ofNullable to have a collection as input. So a stream of elements are initialized instead of the collection.
public static <T> Stream<T> ofNullable(Collection<T> collection) {
return collection == null ? Stream.empty() : collection.stream();
}