Skip to content

Commit dce1525

Browse files
acktsapfmbenhassine
authored andcommitted
Add @nullable to StepExecution::getEndTime
1 parent 0c0a847 commit dce1525

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2021 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.
@@ -24,6 +24,7 @@
2424
import java.util.concurrent.CopyOnWriteArrayList;
2525

2626
import org.springframework.batch.item.ExecutionContext;
27+
import org.springframework.lang.Nullable;
2728
import org.springframework.util.Assert;
2829

2930
/**
@@ -34,6 +35,7 @@
3435
* @author Lucas Ward
3536
* @author Dave Syer
3637
* @author Mahmoud Ben Hassine
38+
* @author Taeik Lim
3739
*
3840
*/
3941
@SuppressWarnings("serial")
@@ -155,10 +157,11 @@ public void setCommitCount(long commitCount) {
155157
}
156158

157159
/**
158-
* Returns the time that this execution ended
160+
* Returns the time that this execution ended or {@code null} if the step is running.
159161
*
160-
* @return the time that this execution ended
162+
* @return the time that this execution ended or {@code null} if the step is running
161163
*/
164+
@Nullable
162165
public Date getEndTime() {
163166
return endTime;
164167
}

0 commit comments

Comments
 (0)