Skip to content

Commit 1058fed

Browse files
committed
Merge branch '6.0.x'
2 parents bcd09d7 + 544f594 commit 1058fed

File tree

1 file changed

+2
-2
lines changed
  • spring-context/src/main/java/org/springframework/scheduling

1 file changed

+2
-2
lines changed

spring-context/src/main/java/org/springframework/scheduling/Trigger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -45,7 +45,7 @@ public interface Trigger {
4545
@Nullable
4646
default Date nextExecutionTime(TriggerContext triggerContext) {
4747
Instant instant = nextExecution(triggerContext);
48-
return instant != null ? Date.from(instant) : null;
48+
return (instant != null ? Date.from(instant) : null);
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)