We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcd09d7 + 544f594 commit 1058fedCopy full SHA for 1058fed
spring-context/src/main/java/org/springframework/scheduling/Trigger.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2022 the original author or authors.
+ * Copyright 2002-2023 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public interface Trigger {
45
@Nullable
46
default Date nextExecutionTime(TriggerContext triggerContext) {
47
Instant instant = nextExecution(triggerContext);
48
- return instant != null ? Date.from(instant) : null;
+ return (instant != null ? Date.from(instant) : null);
49
}
50
51
/**
0 commit comments