Skip to content

Commit 976d791

Browse files
acktsapfmbenhassine
authored andcommitted
Add @Nullable where appropriate in JobExecution and StepExecution
Issue #4077
1 parent c2a5028 commit 976d791

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2020 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.
@@ -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")
@@ -131,6 +132,7 @@ public JobParameters getJobParameters() {
131132
return this.jobParameters;
132133
}
133134

135+
@Nullable
134136
public Date getEndTime() {
135137
return endTime;
136138
}
@@ -143,6 +145,7 @@ public void setEndTime(Date endTime) {
143145
this.endTime = endTime;
144146
}
145147

148+
@Nullable
146149
public Date getStartTime() {
147150
return startTime;
148151
}
@@ -318,6 +321,7 @@ void addStepExecution(StepExecution stepExecution) {
318321
*
319322
* @return Date representing the last time this JobExecution was updated.
320323
*/
324+
@Nullable
321325
public Date getLastUpdated() {
322326
return lastUpdated;
323327
}

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

0 commit comments

Comments
 (0)