From: Matteo Mara Date: Wed, 31 Jul 2024 08:47:00 +0000 (+0200) Subject: Revert "NO-JIRA Remove use of deprecated StatusPrinter class" due to Junit failures... X-Git-Tag: 10.7.0.96327~279 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c8dfeaa4b4ff7020255c4da2d34b78d4602c1edb;p=sonarqube.git Revert "NO-JIRA Remove use of deprecated StatusPrinter class" due to Junit failures on public repo This reverts commit 9dda0d3f68a6306078c2928154c59a6f7baf56c5. --- diff --git a/sonar-core/src/main/java/org/sonar/core/config/Logback.java b/sonar-core/src/main/java/org/sonar/core/config/Logback.java index a8eea88ff40..c327b2a2fa4 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/Logback.java +++ b/sonar-core/src/main/java/org/sonar/core/config/Logback.java @@ -22,7 +22,7 @@ package org.sonar.core.config; import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.joran.spi.JoranException; -import ch.qos.logback.core.util.StatusPrinter2; +import ch.qos.logback.core.util.StatusPrinter; import java.io.File; import java.io.FileInputStream; import java.io.IOException; @@ -74,8 +74,7 @@ public class Logback { } finally { IOUtils.closeQuietly(input); } - var statusPrinter2 = new StatusPrinter2(); - statusPrinter2.printInCaseOfErrorsOrWarnings(lc); + StatusPrinter.printInCaseOfErrorsOrWarnings(lc); } private static LoggerContext configureContext(LoggerContext context, Map substitutionVariables) {