Committed by
Gerrit Code Review
Help type inference.
- Build was failing with eclipse ECJ Change-Id: I506e90b52b0c0f63081e75cfa98a83bf294261ba
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -660,7 +660,7 @@ public abstract class Tools { | ... | @@ -660,7 +660,7 @@ public abstract class Tools { |
660 | * @return optional as a stream | 660 | * @return optional as a stream |
661 | */ | 661 | */ |
662 | public static <T> Stream<T> stream(Optional<? extends T> optional) { | 662 | public static <T> Stream<T> stream(Optional<? extends T> optional) { |
663 | - return optional.map(x -> Stream.of(x)).orElse(Stream.empty()); | 663 | + return optional.map(x -> Stream.<T>of(x)).orElse(Stream.empty()); |
664 | } | 664 | } |
665 | 665 | ||
666 | // Auxiliary path visitor for recursive directory structure copying. | 666 | // Auxiliary path visitor for recursive directory structure copying. | ... | ... |
-
Please register or login to post a comment