Skip to content

Commit

Permalink
Add @Nullable where appropriate in JobExecution and StepExecution
Browse files Browse the repository at this point in the history
Issue #4077
  • Loading branch information
acktsap authored and fmbenhassine committed May 18, 2022
1 parent c2a5028 commit 976d791
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -38,6 +38,7 @@
* @author Michael Minella
* @author Mahmoud Ben Hassine
* @author Dimitrios Liapis
* @author Taeik Lim
*
*/
@SuppressWarnings("serial")
Expand Down Expand Up @@ -131,6 +132,7 @@ public JobParameters getJobParameters() {
return this.jobParameters;
}

@Nullable
public Date getEndTime() {
return endTime;
}
Expand All @@ -143,6 +145,7 @@ public void setEndTime(Date endTime) {
this.endTime = endTime;
}

@Nullable
public Date getStartTime() {
return startTime;
}
Expand Down Expand Up @@ -318,6 +321,7 @@ void addStepExecution(StepExecution stepExecution) {
*
* @return Date representing the last time this JobExecution was updated.
*/
@Nullable
public Date getLastUpdated() {
return lastUpdated;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ public void setProcessSkipCount(int processSkipCount) {
/**
* @return the Date representing the last time this execution was persisted.
*/
@Nullable
public Date getLastUpdated() {
return lastUpdated;
}
Expand Down

0 comments on commit 976d791

Please sign in to comment.