Skip to content

Commit

Permalink
Add @nullable to StepExecution::getEndTime
Browse files Browse the repository at this point in the history
  • Loading branch information
acktsap authored and fmbenhassine committed Feb 18, 2022
1 parent 0c0a847 commit dce1525
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2021 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.
Expand All @@ -24,6 +24,7 @@
import java.util.concurrent.CopyOnWriteArrayList;

import org.springframework.batch.item.ExecutionContext;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

/**
Expand All @@ -34,6 +35,7 @@
* @author Lucas Ward
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @author Taeik Lim
*
*/
@SuppressWarnings("serial")
Expand Down Expand Up @@ -155,10 +157,11 @@ public void setCommitCount(long commitCount) {
}

/**
* Returns the time that this execution ended
* Returns the time that this execution ended or {@code null} if the step is running.
*
* @return the time that this execution ended
* @return the time that this execution ended or {@code null} if the step is running
*/
@Nullable
public Date getEndTime() {
return endTime;
}
Expand Down

0 comments on commit dce1525

Please sign in to comment.