From ac197be81529c2599e1d633dc3bdc6be6e96f0ec Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 10 Jun 2020 22:14:09 -0700 Subject: [PATCH] Fix checkstyle issue --- .../boot/logging/log4j2/Log4J2LoggingSystem.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java index 3eea2208e8..12e30eaaf6 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java @@ -242,9 +242,7 @@ public class Log4J2LoggingSystem extends Slf4JLoggingSystem { for (Logger logger : getLoggerContext().getLoggers()) { addLogger(loggers, logger.getName()); } - getLoggerContext().getConfiguration().getLoggers().keySet().forEach((name) -> { - addLogger(loggers, name); - }); + getLoggerContext().getConfiguration().getLoggers().keySet().forEach((name) -> addLogger(loggers, name)); return loggers; }