Skip to content

Commit a012cdc

Browse files
acktsaplcmarvin
authored andcommitted
Add @nullable to StepExecution::getEndTime
1 parent b89227e commit a012cdc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.concurrent.CopyOnWriteArrayList;
2525

2626
import org.springframework.batch.item.ExecutionContext;
27+
import org.springframework.lang.Nullable;
2728
import org.springframework.util.Assert;
2829

2930
/**
@@ -34,6 +35,7 @@
3435
* @author Lucas Ward
3536
* @author Dave Syer
3637
* @author Mahmoud Ben Hassine
38+
* @author Taeik Lim
3739
*
3840
*/
3941
@SuppressWarnings("serial")
@@ -157,10 +159,11 @@ public void setCommitCount(long commitCount) {
157159
}
158160

159161
/**
160-
* Returns the time that this execution ended
162+
* Returns the time that this execution ended or {@code null} if the step is running.
161163
*
162-
* @return the time that this execution ended
164+
* @return the time that this execution ended or {@code null} if the step is running
163165
*/
166+
@Nullable
164167
public Date getEndTime() {
165168
return endTime;
166169
}

0 commit comments

Comments
 (0)