From a3d07e29620d7fe5828da6cb8e7644a2be3ddd6a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 6 Jul 2023 13:33:40 -0400 Subject: [PATCH] Add @SuppressWarnings("unchecked") --- .../org/apache/commons/lang3/function/FailableBiConsumer.java | 1 + .../org/apache/commons/lang3/function/FailableBiFunction.java | 1 + .../org/apache/commons/lang3/function/FailableBiPredicate.java | 2 ++ .../org/apache/commons/lang3/function/FailableConsumer.java | 1 + .../apache/commons/lang3/function/FailableDoubleConsumer.java | 1 + .../apache/commons/lang3/function/FailableDoubleFunction.java | 1 + .../apache/commons/lang3/function/FailableDoublePredicate.java | 2 ++ .../commons/lang3/function/FailableDoubleToIntFunction.java | 3 ++- .../commons/lang3/function/FailableDoubleToLongFunction.java | 1 + .../commons/lang3/function/FailableDoubleUnaryOperator.java | 1 + .../org/apache/commons/lang3/function/FailableFunction.java | 1 + .../org/apache/commons/lang3/function/FailableIntConsumer.java | 1 + .../org/apache/commons/lang3/function/FailableIntFunction.java | 1 + .../apache/commons/lang3/function/FailableIntPredicate.java | 2 ++ .../commons/lang3/function/FailableIntToDoubleFunction.java | 1 + .../commons/lang3/function/FailableIntToLongFunction.java | 1 + .../commons/lang3/function/FailableIntUnaryOperator.java | 1 + .../apache/commons/lang3/function/FailableLongConsumer.java | 1 + .../apache/commons/lang3/function/FailableLongFunction.java | 1 + .../apache/commons/lang3/function/FailableLongPredicate.java | 2 ++ .../commons/lang3/function/FailableLongToDoubleFunction.java | 1 + .../commons/lang3/function/FailableLongToIntFunction.java | 1 + .../commons/lang3/function/FailableLongUnaryOperator.java | 3 ++- .../commons/lang3/function/FailableObjDoubleConsumer.java | 3 ++- .../apache/commons/lang3/function/FailableObjIntConsumer.java | 1 + .../apache/commons/lang3/function/FailableObjLongConsumer.java | 1 + .../org/apache/commons/lang3/function/FailablePredicate.java | 2 ++ .../commons/lang3/function/FailableToDoubleBiFunction.java | 1 + .../commons/lang3/function/FailableToDoubleFunction.java | 1 + .../apache/commons/lang3/function/FailableToIntBiFunction.java | 1 + .../apache/commons/lang3/function/FailableToIntFunction.java | 1 + .../commons/lang3/function/FailableToLongBiFunction.java | 1 + .../apache/commons/lang3/function/FailableToLongFunction.java | 1 + 33 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java index dbe02806f..e0c045d01 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java @@ -43,6 +43,7 @@ public interface FailableBiConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableBiConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java index cabcd1921..07c830e8e 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java @@ -46,6 +46,7 @@ public interface FailableBiFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableBiFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java b/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java index 9fff9180e..8ba195412 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java @@ -47,6 +47,7 @@ public interface FailableBiPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableBiPredicate falsePredicate() { return FALSE; } @@ -59,6 +60,7 @@ public interface FailableBiPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableBiPredicate truePredicate() { return TRUE; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java index 30595b4bb..2d781929a 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java @@ -46,6 +46,7 @@ public interface FailableConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java index fda3972af..8e6814ef5 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java @@ -39,6 +39,7 @@ public interface FailableDoubleConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoubleConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java index cdca5accd..f56ba0c91 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java @@ -40,6 +40,7 @@ public interface FailableDoubleFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoubleFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java b/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java index e54f501a7..97307be84 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java @@ -43,6 +43,7 @@ public interface FailableDoublePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoublePredicate falsePredicate() { return FALSE; } @@ -53,6 +54,7 @@ public interface FailableDoublePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoublePredicate truePredicate() { return TRUE; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoubleToIntFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableDoubleToIntFunction.java index e8a247c62..eb04f3e6f 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleToIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleToIntFunction.java @@ -38,7 +38,8 @@ public interface FailableDoubleToIntFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - static FailableDoubleToIntFunction nop() { + @SuppressWarnings("unchecked") + static FailableDoubleToIntFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java index eeb3f3972..ed1dbee32 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java @@ -38,6 +38,7 @@ public interface FailableDoubleToLongFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoubleToLongFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java b/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java index 91f98c6c7..2eff1fc1c 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java @@ -48,6 +48,7 @@ public interface FailableDoubleUnaryOperator { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableDoubleUnaryOperator nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableFunction.java index ef088c960..b37bce6c4 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableFunction.java @@ -54,6 +54,7 @@ public interface FailableFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java index 98df32449..c35e1afdd 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java @@ -39,6 +39,7 @@ public interface FailableIntConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java index 7f173defe..f2350cd2a 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java @@ -40,6 +40,7 @@ public interface FailableIntFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java b/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java index 1438e60f8..d4f38cbe6 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java @@ -43,6 +43,7 @@ public interface FailableIntPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntPredicate falsePredicate() { return FALSE; } @@ -53,6 +54,7 @@ public interface FailableIntPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntPredicate truePredicate() { return TRUE; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java index 6d96cd700..e1bfa5d73 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java @@ -38,6 +38,7 @@ public interface FailableIntToDoubleFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntToDoubleFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java index 4693fb56a..cd97f062b 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java @@ -38,6 +38,7 @@ public interface FailableIntToLongFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntToLongFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java b/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java index a0d3cedc4..662596225 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java @@ -48,6 +48,7 @@ public interface FailableIntUnaryOperator { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableIntUnaryOperator nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java index 3bd4e46a9..bb23a6f86 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java @@ -39,6 +39,7 @@ public interface FailableLongConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java index 7ba5a12d6..5df6ae28d 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java @@ -40,6 +40,7 @@ public interface FailableLongFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java b/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java index 426d42891..5586dd4ab 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java @@ -43,6 +43,7 @@ public interface FailableLongPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongPredicate falsePredicate() { return FALSE; } @@ -53,6 +54,7 @@ public interface FailableLongPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongPredicate truePredicate() { return TRUE; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java index e0105bb72..90dd01257 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java @@ -38,6 +38,7 @@ public interface FailableLongToDoubleFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongToDoubleFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java index e9a7a9efc..f700385cf 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java @@ -38,6 +38,7 @@ public interface FailableLongToIntFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableLongToIntFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableLongUnaryOperator.java b/src/main/java/org/apache/commons/lang3/function/FailableLongUnaryOperator.java index b58f79ddf..47f46777c 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongUnaryOperator.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongUnaryOperator.java @@ -48,7 +48,8 @@ public interface FailableLongUnaryOperator { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - static FailableLongUnaryOperator nop() { + @SuppressWarnings("unchecked") + static FailableLongUnaryOperator nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableObjDoubleConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableObjDoubleConsumer.java index 725e9f365..b42e3ebc7 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableObjDoubleConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableObjDoubleConsumer.java @@ -40,7 +40,8 @@ public interface FailableObjDoubleConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - static FailableObjDoubleConsumer nop() { + @SuppressWarnings("unchecked") + static FailableObjDoubleConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java index 48055de02..427bbfe40 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java @@ -40,6 +40,7 @@ public interface FailableObjIntConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableObjIntConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java b/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java index e75bede46..c6a6efd17 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java @@ -40,6 +40,7 @@ public interface FailableObjLongConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableObjLongConsumer nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java b/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java index bf4a5e370..8bc651c39 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java @@ -45,6 +45,7 @@ public interface FailablePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailablePredicate falsePredicate() { return FALSE; } @@ -56,6 +57,7 @@ public interface FailablePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailablePredicate truePredicate() { return TRUE; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java index aea48e716..3ce105eb8 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java @@ -42,6 +42,7 @@ public interface FailableToDoubleBiFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToDoubleBiFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java index b65591ca2..8f4661b13 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java @@ -40,6 +40,7 @@ public interface FailableToDoubleFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToDoubleFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java index 67617134f..b244cf562 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java @@ -42,6 +42,7 @@ public interface FailableToIntBiFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToIntBiFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java index 711115754..23578a778 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java @@ -40,6 +40,7 @@ public interface FailableToIntFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToIntFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java index 3c0d5f7ed..2fb9d40d8 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java @@ -42,6 +42,7 @@ public interface FailableToLongBiFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToLongBiFunction nop() { return NOP; } diff --git a/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java b/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java index f093f7467..c8f8bb799 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java @@ -40,6 +40,7 @@ public interface FailableToLongFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ + @SuppressWarnings("unchecked") static FailableToLongFunction nop() { return NOP; }