Skip to content

Commit 6185714

Browse files
author
dsyer
committed
OPEN - issue BATCH-677: Partitioning enablement (SPI).
Use FutureTask directly instead of wrapping
1 parent 2843c17 commit 6185714

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ public StepExecution call() throws Exception {
6363
});
6464

6565
try {
66-
taskExecutor.execute(new Runnable() {
67-
public void run() {
68-
task.run();
69-
}
70-
});
66+
taskExecutor.execute(task);
7167
tasks.add(task);
7268
}
7369
catch (TaskRejectedException e) {

0 commit comments

Comments
 (0)