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 742d076f5..19f88e668 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 @@ -1,5 +1,5 @@ /* - * Copyright 2006-2020 the original author or authors. + * Copyright 2006-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ import org.springframework.lang.Nullable; * @author Michael Minella * @author Mahmoud Ben Hassine * @author Dimitrios Liapis + * @author Taeik Lim * */ @SuppressWarnings("serial") @@ -131,6 +132,7 @@ public class JobExecution extends Entity { return this.jobParameters; } + @Nullable public Date getEndTime() { return endTime; } @@ -143,6 +145,7 @@ public class JobExecution extends Entity { this.endTime = endTime; } + @Nullable public Date getStartTime() { return startTime; } @@ -318,6 +321,7 @@ public class JobExecution extends Entity { * * @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 2aaf7aa22..1422fd318 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 @@ -461,6 +461,7 @@ public class StepExecution extends Entity { /** * @return the Date representing the last time this execution was persisted. */ + @Nullable public Date getLastUpdated() { return lastUpdated; }