Skip to content

Commit d393259

Browse files
committed
Add @nullable to JobExecution, StepExecution
1 parent 44dd4f7 commit d393259

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* @author Michael Minella
3939
* @author Mahmoud Ben Hassine
4040
* @author Dimitrios Liapis
41+
* @author Taeik Lim
4142
*
4243
*/
4344
@SuppressWarnings("serial")
@@ -139,6 +140,7 @@ public JobParameters getJobParameters() {
139140
/**
140141
* @return The current end time.
141142
*/
143+
@Nullable
142144
public Date getEndTime() {
143145
return endTime;
144146
}
@@ -164,6 +166,7 @@ public void setEndTime(Date endTime) {
164166
/**
165167
* @return The current start time.
166168
*/
169+
@Nullable
167170
public Date getStartTime() {
168171
return startTime;
169172
}
@@ -327,6 +330,7 @@ void addStepExecution(StepExecution stepExecution) {
327330
*
328331
* @return Date representing the last time this JobExecution was updated.
329332
*/
333+
@Nullable
330334
public Date getLastUpdated() {
331335
return lastUpdated;
332336
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ public void setProcessSkipCount(long processSkipCount) {
464464
/**
465465
* @return the Date representing the last time this execution was persisted.
466466
*/
467+
@Nullable
467468
public Date getLastUpdated() {
468469
return lastUpdated;
469470
}

0 commit comments

Comments
 (0)