Remove redundant type arguments and end-of-line whitespace.

This commit is contained in:
Gary Gregory 2020-02-14 09:39:49 -05:00
parent 485876f9c2
commit 0568456103
3 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ public enum Interfaces {
/** Includes interfaces. */
INCLUDE,
/** Excludes interfaces. */
EXCLUDE
}

View File

@ -417,7 +417,7 @@ public static <O, T extends Throwable> O get(final FailableSupplier<O, T> pSuppl
* @return The created {@link FailableStream}.
*/
public static <O> FailableStream<O> stream(final Stream<O> pStream) {
return new FailableStream<O>(pStream);
return new FailableStream<>(pStream);
}
/**
@ -434,7 +434,7 @@ public static <O> FailableStream<O> stream(final Stream<O> pStream) {
* @return The created {@link FailableStream}.
*/
public static <O> FailableStream<O> stream(final Collection<O> pCollection) {
return new FailableStream<O>(pCollection.stream());
return new FailableStream<>(pCollection.stream());
}

View File

@ -279,7 +279,7 @@ public O reduce(final O pIdentity, final BinaryOperator<O> pAccumulator) {
*/
public <R> FailableStream<R> map(final FailableFunction<O, R, ?> pMapper) {
assertNotTerminated();
return new FailableStream<R>(stream.map(Functions.asFunction(pMapper)));
return new FailableStream<>(stream.map(Functions.asFunction(pMapper)));
}
/**
@ -376,7 +376,7 @@ public boolean anyMatch(final FailablePredicate<O, ?> pPredicate) {
* converting the stream.
*/
public static <O> FailableStream<O> stream(final Stream<O> pStream) {
return new FailableStream<O>(pStream);
return new FailableStream<>(pStream);
}
/**