Skip to content

Commit c21a8aa

Browse files
jongwooosbrannen
authored andcommitted
Wrap ternary operator within parentheses as outlined in Code Style
Closes gh-30358
1 parent 30d6ec3 commit c21a8aa

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)