From c8dfeaa4b4ff7020255c4da2d34b78d4602c1edb Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Wed, 31 Jul 2024 10:47:00 +0200 Subject: [PATCH] Revert "NO-JIRA Remove use of deprecated StatusPrinter class" due to Junit failures on public repo This reverts commit 9dda0d3f68a6306078c2928154c59a6f7baf56c5. --- sonar-core/src/main/java/org/sonar/core/config/Logback.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.39.5