Skip to content

Commit 9ecbf98

Browse files
acktsapfmbenhassine
authored andcommitted
Add @Nullable where appropriate in JobExecution and StepExecution
Issue #4077
1 parent e86aebb commit 9ecbf98

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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
* @return a {@code Date} object representing the last time this
328331
* {@code 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public void setCreateTime(Date createTime) {
273273
*
274274
* @return the time when this execution started.
275275
*/
276+
@Nullable
276277
public Date getStartTime() {
277278
return startTime;
278279
}
@@ -485,6 +486,7 @@ public void setProcessSkipCount(long processSkipCount) {
485486
/**
486487
* @return the Date representing the last time this execution was persisted.
487488
*/
489+
@Nullable
488490
public Date getLastUpdated() {
489491
return lastUpdated;
490492
}

0 commit comments

Comments
 (0)