From d393259bec5599e87076053bfc34c4d3f72889dd Mon Sep 17 00:00:00 2001 From: Taeik Lim Date: Tue, 15 Mar 2022 02:44:43 +0900 Subject: [PATCH] Add @Nullable to JobExecution, StepExecution --- .../java/org/springframework/batch/core/JobExecution.java | 4 ++++ .../java/org/springframework/batch/core/StepExecution.java | 1 + 2 files changed, 5 insertions(+) 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; }