Remove @SuppressWarnings("unchecked")

This commit is contained in:
Gary Gregory 2022-05-28 07:58:24 -04:00
parent 25000a62f4
commit eb2bc4d3b7
33 changed files with 0 additions and 38 deletions

View File

@ -43,7 +43,6 @@ public interface FailableBiConsumer<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop() { static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop() {
return NOP; return NOP;
} }

View File

@ -46,7 +46,6 @@ public interface FailableBiFunction<T, U, R, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> nop() { static <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> nop() {
return NOP; return NOP;
} }

View File

@ -47,7 +47,6 @@ public interface FailableBiPredicate<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> falsePredicate() { static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> falsePredicate() {
return FALSE; return FALSE;
} }
@ -60,7 +59,6 @@ public interface FailableBiPredicate<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> truePredicate() { static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> truePredicate() {
return TRUE; return TRUE;
} }

View File

@ -46,7 +46,6 @@ public interface FailableConsumer<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableConsumer<T, E> nop() { static <T, E extends Throwable> FailableConsumer<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -39,7 +39,6 @@ public interface FailableDoubleConsumer<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoubleConsumer<E> nop() { static <E extends Throwable> FailableDoubleConsumer<E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableDoubleFunction<R, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <R, E extends Throwable> FailableDoubleFunction<R, E> nop() { static <R, E extends Throwable> FailableDoubleFunction<R, E> nop() {
return NOP; return NOP;
} }

View File

@ -43,7 +43,6 @@ public interface FailableDoublePredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoublePredicate<E> falsePredicate() { static <E extends Throwable> FailableDoublePredicate<E> falsePredicate() {
return FALSE; return FALSE;
} }
@ -54,7 +53,6 @@ public interface FailableDoublePredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoublePredicate<E> truePredicate() { static <E extends Throwable> FailableDoublePredicate<E> truePredicate() {
return TRUE; return TRUE;
} }

View File

@ -38,7 +38,6 @@ public interface FailableDoubleToIntFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoubleToIntFunction<E> nop() { static <E extends Throwable> FailableDoubleToIntFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -38,7 +38,6 @@ public interface FailableDoubleToLongFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoubleToLongFunction<E> nop() { static <E extends Throwable> FailableDoubleToLongFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -48,7 +48,6 @@ public interface FailableDoubleUnaryOperator<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableDoubleUnaryOperator<E> nop() { static <E extends Throwable> FailableDoubleUnaryOperator<E> nop() {
return NOP; return NOP;
} }

View File

@ -54,7 +54,6 @@ public interface FailableFunction<T, R, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, R, E extends Throwable> FailableFunction<T, R, E> nop() { static <T, R, E extends Throwable> FailableFunction<T, R, E> nop() {
return NOP; return NOP;
} }

View File

@ -39,7 +39,6 @@ public interface FailableIntConsumer<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntConsumer<E> nop() { static <E extends Throwable> FailableIntConsumer<E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableIntFunction<R, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <R, E extends Throwable> FailableIntFunction<R, E> nop() { static <R, E extends Throwable> FailableIntFunction<R, E> nop() {
return NOP; return NOP;
} }

View File

@ -43,7 +43,6 @@ public interface FailableIntPredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntPredicate<E> falsePredicate() { static <E extends Throwable> FailableIntPredicate<E> falsePredicate() {
return FALSE; return FALSE;
} }
@ -54,7 +53,6 @@ public interface FailableIntPredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntPredicate<E> truePredicate() { static <E extends Throwable> FailableIntPredicate<E> truePredicate() {
return TRUE; return TRUE;
} }

View File

@ -38,7 +38,6 @@ public interface FailableIntToDoubleFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntToDoubleFunction<E> nop() { static <E extends Throwable> FailableIntToDoubleFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -38,7 +38,6 @@ public interface FailableIntToLongFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntToLongFunction<E> nop() { static <E extends Throwable> FailableIntToLongFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -48,7 +48,6 @@ public interface FailableIntUnaryOperator<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableIntUnaryOperator<E> nop() { static <E extends Throwable> FailableIntUnaryOperator<E> nop() {
return NOP; return NOP;
} }

View File

@ -39,7 +39,6 @@ public interface FailableLongConsumer<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongConsumer<E> nop() { static <E extends Throwable> FailableLongConsumer<E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableLongFunction<R, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <R, E extends Throwable> FailableLongFunction<R, E> nop() { static <R, E extends Throwable> FailableLongFunction<R, E> nop() {
return NOP; return NOP;
} }

View File

@ -43,7 +43,6 @@ public interface FailableLongPredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongPredicate<E> falsePredicate() { static <E extends Throwable> FailableLongPredicate<E> falsePredicate() {
return FALSE; return FALSE;
} }
@ -54,7 +53,6 @@ public interface FailableLongPredicate<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongPredicate<E> truePredicate() { static <E extends Throwable> FailableLongPredicate<E> truePredicate() {
return TRUE; return TRUE;
} }

View File

@ -38,7 +38,6 @@ public interface FailableLongToDoubleFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongToDoubleFunction<E> nop() { static <E extends Throwable> FailableLongToDoubleFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -38,7 +38,6 @@ public interface FailableLongToIntFunction<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongToIntFunction<E> nop() { static <E extends Throwable> FailableLongToIntFunction<E> nop() {
return NOP; return NOP;
} }

View File

@ -48,7 +48,6 @@ public interface FailableLongUnaryOperator<E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <E extends Throwable> FailableLongUnaryOperator<E> nop() { static <E extends Throwable> FailableLongUnaryOperator<E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableObjDoubleConsumer<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableObjDoubleConsumer<T, E> nop() { static <T, E extends Throwable> FailableObjDoubleConsumer<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableObjIntConsumer<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableObjIntConsumer<T, E> nop() { static <T, E extends Throwable> FailableObjIntConsumer<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableObjLongConsumer<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableObjLongConsumer<T, E> nop() { static <T, E extends Throwable> FailableObjLongConsumer<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -45,7 +45,6 @@ public interface FailablePredicate<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailablePredicate<T, E> falsePredicate() { static <T, E extends Throwable> FailablePredicate<T, E> falsePredicate() {
return FALSE; return FALSE;
} }
@ -57,7 +56,6 @@ public interface FailablePredicate<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailablePredicate<T, E> truePredicate() { static <T, E extends Throwable> FailablePredicate<T, E> truePredicate() {
return TRUE; return TRUE;
} }

View File

@ -42,7 +42,6 @@ public interface FailableToDoubleBiFunction<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableToDoubleBiFunction<T, U, E> nop() { static <T, U, E extends Throwable> FailableToDoubleBiFunction<T, U, E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableToDoubleFunction<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableToDoubleFunction<T, E> nop() { static <T, E extends Throwable> FailableToDoubleFunction<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -42,7 +42,6 @@ public interface FailableToIntBiFunction<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableToIntBiFunction<T, U, E> nop() { static <T, U, E extends Throwable> FailableToIntBiFunction<T, U, E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableToIntFunction<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableToIntFunction<T, E> nop() { static <T, E extends Throwable> FailableToIntFunction<T, E> nop() {
return NOP; return NOP;
} }

View File

@ -42,7 +42,6 @@ public interface FailableToLongBiFunction<T, U, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E> nop() { static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E> nop() {
return NOP; return NOP;
} }

View File

@ -40,7 +40,6 @@ public interface FailableToLongFunction<T, E extends Throwable> {
* @param <E> The kind of thrown exception or error. * @param <E> The kind of thrown exception or error.
* @return The NOP singleton. * @return The NOP singleton.
*/ */
@SuppressWarnings("unchecked")
static <T, E extends Throwable> FailableToLongFunction<T, E> nop() { static <T, E extends Throwable> FailableToLongFunction<T, E> nop() {
return NOP; return NOP;
} }