Fix Javadoc errors in the CheckedCallable

This commit is contained in:
Artem Bilan
2025-01-02 12:49:40 -05:00
parent 31642a20b2
commit ffcf5f91f1

View File

@@ -35,9 +35,9 @@ public interface CheckedCallable<T, E extends Throwable> {
T call() throws E;
/**
* Wrap the {@link #call()} into unchecked {@link Callable<T>}.
* Wrap the {@link #call()} into unchecked {@link Callable}.
* Re-throw its exception wrapped with a {@link IllegalStateException}.
* @return the unchecked {@link Callable<T>}.
* @return the unchecked {@link Callable}.
*/
default Callable<T> unchecked() {
return () -> {
@@ -59,9 +59,9 @@ public interface CheckedCallable<T, E extends Throwable> {
}
/**
* Wrap the {@link #call()} into unchecked {@link Callable<T>}.
* Wrap the {@link #call()} into unchecked {@link Callable}.
* Re-throw its exception wrapped with a {@link IllegalStateException}.
* @return the unchecked {@link Callable<T>}.
* @return the unchecked {@link Callable}.
* @deprecated since 6.5 in favor of {@link #unchecked()}.
* @since 6.3.7
*/