Skip to content

Commit 1525685

Browse files
王洋wilkinsona
authored andcommitted
Make the logger static final
See gh-18575
1 parent e05c489 commit 1525685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void failed(ConfigurableApplicationContext context, Throwable exception)
127127

128128
private static class LoggingErrorHandler implements ErrorHandler {
129129

130-
private static Log logger = LogFactory.getLog(EventPublishingRunListener.class);
130+
private static final Log logger = LogFactory.getLog(EventPublishingRunListener.class);
131131

132132
@Override
133133
public void handleError(Throwable throwable) {

0 commit comments

Comments
 (0)