Skip to content

Commit d85a020

Browse files
committed
Improve Task Javadoc about Runnable wrapping
Closes gh-35394
1 parent 0cc79ba commit d85a020

File tree

1 file changed

+3
-1
lines changed
  • spring-context/src/main/java/org/springframework/scheduling/config

1 file changed

+3
-1
lines changed

spring-context/src/main/java/org/springframework/scheduling/config/Task.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public Task(Runnable runnable) {
5050

5151

5252
/**
53-
* Return the underlying task.
53+
* Return a {@link Runnable} that executes the underlying task.
54+
* <p>Note, this does not necessarily return the {@link Task#Task(Runnable) original runnable}
55+
* as it can be wrapped by the Framework for additional support.
5456
*/
5557
public Runnable getRunnable() {
5658
return this.runnable;

0 commit comments

Comments
 (0)