diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java index 76ab2916cf..5b7796775e 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java @@ -38,6 +38,7 @@ * @author Michael Minella * @author Mahmoud Ben Hassine * @author Dimitrios Liapis + * @author Taeik Lim * */ @SuppressWarnings("serial") @@ -139,6 +140,7 @@ public JobParameters getJobParameters() { /** * @return The current end time. */ + @Nullable public Date getEndTime() { return endTime; } @@ -164,6 +166,7 @@ public void setEndTime(Date endTime) { /** * @return The current start time. */ + @Nullable public Date getStartTime() { return startTime; } @@ -327,6 +330,7 @@ void addStepExecution(StepExecution stepExecution) { * * @return Date representing the last time this JobExecution was updated. */ + @Nullable public Date getLastUpdated() { return lastUpdated; } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java index 2ce6ae2c9b..afcde95649 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java @@ -464,6 +464,7 @@ public void setProcessSkipCount(long processSkipCount) { /** * @return the Date representing the last time this execution was persisted. */ + @Nullable public Date getLastUpdated() { return lastUpdated; }