Skip to content

Commit b919921

Browse files
acktsapfmbenhassine
authored andcommitted
Add @nullable to StepExecution::getEndTime
Issue #4034
1 parent d0d0c7d commit b919921

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2013 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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
/**
@@ -33,6 +34,7 @@
3334
*
3435
* @author Lucas Ward
3536
* @author Dave Syer
37+
* @author Taeik Lim
3638
*
3739
*/
3840
@SuppressWarnings("serial")
@@ -154,10 +156,11 @@ public void setCommitCount(int commitCount) {
154156
}
155157

156158
/**
157-
* Returns the time that this execution ended
159+
* Returns the time that this execution ended or {@code null} if the step is running.
158160
*
159-
* @return the time that this execution ended
161+
* @return the time that this execution ended or {@code null} if the step is running
160162
*/
163+
@Nullable
161164
public Date getEndTime() {
162165
return endTime;
163166
}

0 commit comments

Comments
 (0)