Skip to content

Commit

Permalink
Changed cast to use the types T and E
Browse files Browse the repository at this point in the history
  • Loading branch information
porfanid committed Sep 4, 2023
1 parent 9c3bc28 commit 363e23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mug/src/main/java/com/google/mu/util/Maybe.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ private static <E extends Throwable> Optional<E> unwrapFutureException(
/** Adapts a {@code Maybe<Stream<T>, E>} to {@code Stream<Maybe<T, E>}. */
private static <T, E extends Throwable> Stream<Maybe<T, E>> maybeStream(
Maybe<? extends Stream<? extends T>, ? extends E> maybeStream) {
return maybeStream.map(s -> s.map(Maybe::<T, E>of)).orElse(e -> Stream.of(except(e)));
return maybeStream.map(s -> s.map(Maybe::<T, E>of)).orElse(e -> Stream.of(Maybe.<T,E>except(e)));
}

private static <E extends Throwable> E cleanupInterruption(E exception) {
Expand Down

0 comments on commit 363e23f

Please sign in to comment.