From 152568521eb446d7b331a4e7c1215d29605bf884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B4=8B?= Date: Mon, 14 Oct 2019 19:31:34 +0800 Subject: [PATCH] Make the logger static final See gh-18575 --- .../boot/context/event/EventPublishingRunListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java index 04ec968640..ce91bec648 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java @@ -127,7 +127,7 @@ public class EventPublishingRunListener implements SpringApplicationRunListener, private static class LoggingErrorHandler implements ErrorHandler { - private static Log logger = LogFactory.getLog(EventPublishingRunListener.class); + private static final Log logger = LogFactory.getLog(EventPublishingRunListener.class); @Override public void handleError(Throwable throwable) {