Skip to content

Commit c8ad644

Browse files
committed
Add @nullable to JobExecution, StepExecution
1 parent 6b34563 commit c8ad644

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")
@@ -117,6 +118,7 @@ public JobParameters getJobParameters() {
117118
return this.jobParameters;
118119
}
119120

121+
@Nullable
120122
public Date getEndTime() {
121123
return endTime;
122124
}
@@ -129,6 +131,7 @@ public void setEndTime(Date endTime) {
129131
this.endTime = endTime;
130132
}
131133

134+
@Nullable
132135
public Date getStartTime() {
133136
return startTime;
134137
}
@@ -284,6 +287,7 @@ void addStepExecution(StepExecution stepExecution) {
284287
*
285288
* @return Date representing the last time this JobExecution was updated.
286289
*/
290+
@Nullable
287291
public Date getLastUpdated() {
288292
return lastUpdated;
289293
}

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
@@ -462,6 +462,7 @@ public void setProcessSkipCount(long processSkipCount) {
462462
/**
463463
* @return the Date representing the last time this execution was persisted.
464464
*/
465+
@Nullable
465466
public Date getLastUpdated() {
466467
return lastUpdated;
467468
}

0 commit comments

Comments
 (0)