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 54da7b3ba..34dce6445 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiConsumer.java @@ -43,7 +43,6 @@ 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 caa964bc1..79593b2a5 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiFunction.java @@ -46,7 +46,6 @@ 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 d8ad16b08..58f5cfb96 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableBiPredicate.java @@ -47,7 +47,6 @@ public interface FailableBiPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailableBiPredicate falsePredicate() { return FALSE; } @@ -60,7 +59,6 @@ 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 c70d4bffb..d14f25ab0 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableConsumer.java @@ -46,7 +46,6 @@ 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 d722289ba..fe014906c 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleConsumer.java @@ -39,7 +39,6 @@ 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 098621b9c..64eaf8429 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleFunction.java @@ -40,7 +40,6 @@ 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 50c09d76b..3314959da 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoublePredicate.java @@ -43,7 +43,6 @@ public interface FailableDoublePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailableDoublePredicate falsePredicate() { return FALSE; } @@ -54,7 +53,6 @@ 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 8e037c2de..3b5448bbb 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,6 @@ public interface FailableDoubleToIntFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @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 ec386d187..621519229 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleToLongFunction.java @@ -38,7 +38,6 @@ 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 a3db79214..65dee0daf 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableDoubleUnaryOperator.java @@ -48,7 +48,6 @@ 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 4da137716..2146bf1c2 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableFunction.java @@ -54,7 +54,6 @@ 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 0b21aa019..291c6c2d4 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntConsumer.java @@ -39,7 +39,6 @@ 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 355f168d0..635193097 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntFunction.java @@ -40,7 +40,6 @@ 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 66922982a..3f128e583 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntPredicate.java @@ -43,7 +43,6 @@ public interface FailableIntPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailableIntPredicate falsePredicate() { return FALSE; } @@ -54,7 +53,6 @@ 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 b9a41cb40..79db39b67 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntToDoubleFunction.java @@ -38,7 +38,6 @@ 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 422521d3a..8f6227ed5 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntToLongFunction.java @@ -38,7 +38,6 @@ 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 8772a0c4f..f55995785 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableIntUnaryOperator.java @@ -48,7 +48,6 @@ 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 395bbc03b..abf1c897e 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongConsumer.java @@ -39,7 +39,6 @@ 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 5aa27a131..75ad80e18 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongFunction.java @@ -40,7 +40,6 @@ 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 c239a2fac..8e6d9f862 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongPredicate.java @@ -43,7 +43,6 @@ public interface FailableLongPredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailableLongPredicate falsePredicate() { return FALSE; } @@ -54,7 +53,6 @@ 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 c7c5c2f15..5991984a8 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongToDoubleFunction.java @@ -38,7 +38,6 @@ 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 419fd657a..c4d9fda4c 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableLongToIntFunction.java @@ -38,7 +38,6 @@ 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 4b7d6e080..cd6c089f0 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,6 @@ public interface FailableLongUnaryOperator { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @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 4fe4ea974..e0114a44f 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,6 @@ public interface FailableObjDoubleConsumer { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @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 62ee8e579..bc36483ff 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableObjIntConsumer.java @@ -40,7 +40,6 @@ 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 bc1ff2ebc..472c82f62 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableObjLongConsumer.java @@ -40,7 +40,6 @@ 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 7ba62a451..bed40bdd6 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java +++ b/src/main/java/org/apache/commons/lang3/function/FailablePredicate.java @@ -45,7 +45,6 @@ public interface FailablePredicate { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailablePredicate falsePredicate() { return FALSE; } @@ -57,7 +56,6 @@ 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 97a321d3d..b3282f749 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleBiFunction.java @@ -42,7 +42,6 @@ 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 211aa66ae..e295fe49d 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToDoubleFunction.java @@ -40,7 +40,6 @@ 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 a76238921..fe5e55263 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToIntBiFunction.java @@ -42,7 +42,6 @@ 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 8dc2f4d7c..84d7513f8 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToIntFunction.java @@ -40,7 +40,6 @@ 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 87312d6f2..fe8f899a5 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToLongBiFunction.java @@ -42,7 +42,6 @@ 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 99bb53bc6..2d87b3c6c 100644 --- a/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java +++ b/src/main/java/org/apache/commons/lang3/function/FailableToLongFunction.java @@ -40,7 +40,6 @@ public interface FailableToLongFunction { * @param The kind of thrown exception or error. * @return The NOP singleton. */ - @SuppressWarnings("unchecked") static FailableToLongFunction nop() { return NOP; }