We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa17ab commit 0b2bb7eCopy full SHA for 0b2bb7e
spring-core/src/main/java/org/springframework/core/task/TaskCallback.java
@@ -18,6 +18,8 @@
18
19
import java.util.concurrent.Callable;
20
21
+import org.jspecify.annotations.Nullable;
22
+
23
/**
24
* Variant of {@link Callable} with a flexible exception signature
25
* that can be adapted in the {@link SyncTaskExecutor#execute(TaskCallback)}
@@ -34,7 +36,7 @@
34
36
* @param <E> the exception propagated, if any
35
37
* @see SyncTaskExecutor#execute(TaskCallback)
38
*/
-public interface TaskCallback<V, E extends Exception> extends Callable<V> {
39
+public interface TaskCallback<V extends @Nullable Object, E extends Exception> extends Callable<V> {
40
41
@Override
42
V call() throws E;
0 commit comments