diff --git a/src/main/java/org/apache/commons/lang3/Functions.java b/src/main/java/org/apache/commons/lang3/Functions.java index 626928c76..7c9ec3d45 100644 --- a/src/main/java/org/apache/commons/lang3/Functions.java +++ b/src/main/java/org/apache/commons/lang3/Functions.java @@ -31,8 +31,6 @@ import java.util.function.Predicate; import java.util.function.Supplier; import java.util.stream.Stream; -import org.apache.commons.lang3.Streams.FailableStream; -import org.apache.commons.lang3.function.Failable; import org.apache.commons.lang3.function.FailableBooleanSupplier; import org.apache.commons.lang3.function.FailableDoubleBinaryOperator; import org.apache.commons.lang3.function.FailableDoubleConsumer; @@ -41,6 +39,7 @@ import org.apache.commons.lang3.function.FailableIntConsumer; import org.apache.commons.lang3.function.FailableIntSupplier; import org.apache.commons.lang3.function.FailableLongConsumer; import org.apache.commons.lang3.function.FailableLongSupplier; +import org.apache.commons.lang3.stream.Streams.FailableStream; /** * This class provides utility functions, and classes for working with the {@code java.util.function} package, or more @@ -87,7 +86,9 @@ public class Functions { * @param Consumed type 1. * @param Consumed type 2. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableBiConsumer}. */ + @Deprecated @FunctionalInterface public interface FailableBiConsumer { @@ -110,7 +111,9 @@ public class Functions { * @param Input type 2. * @param Return type. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableBiFunction}. */ + @Deprecated @FunctionalInterface public interface FailableBiFunction { @@ -133,7 +136,9 @@ public class Functions { * @param Predicate type 1. * @param Predicate type 2. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableBiPredicate}. */ + @Deprecated @FunctionalInterface public interface FailableBiPredicate { @@ -155,7 +160,9 @@ public class Functions { * * @param Return type. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableCallable}. */ + @Deprecated @FunctionalInterface public interface FailableCallable { @@ -175,7 +182,9 @@ public class Functions { * * @param Consumed type 1. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableConsumer}. */ + @Deprecated @FunctionalInterface public interface FailableConsumer { @@ -196,7 +205,9 @@ public class Functions { * @param Input type 1. * @param Return type. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableFunction}. */ + @Deprecated @FunctionalInterface public interface FailableFunction { @@ -217,7 +228,9 @@ public class Functions { * * @param Predicate type 1. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailablePredicate}. */ + @Deprecated @FunctionalInterface public interface FailablePredicate { @@ -237,7 +250,9 @@ public class Functions { *

TODO for 4.0: Move to org.apache.commons.lang3.function.

* * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableRunnable}. */ + @Deprecated @FunctionalInterface public interface FailableRunnable { @@ -256,7 +271,9 @@ public class Functions { * * @param Return type. * @param Thrown exception. + * @deprecated Use {@link org.apache.commons.lang3.function.FailableSupplier}. */ + @Deprecated @FunctionalInterface public interface FailableSupplier {