From ba79c4c3c1383fa0eb1693febaa5e761efd4a318 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 24 Nov 2024 20:02:18 +0000 Subject: [PATCH] forbidden-apis git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922057 13f79535-47bb-0310-9956-ffa450edef68 --- poi/src/main/java/org/apache/poi/logging/PoiLogManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/poi/src/main/java/org/apache/poi/logging/PoiLogManager.java b/poi/src/main/java/org/apache/poi/logging/PoiLogManager.java index a6289fc08a..2404d55706 100644 --- a/poi/src/main/java/org/apache/poi/logging/PoiLogManager.java +++ b/poi/src/main/java/org/apache/poi/logging/PoiLogManager.java @@ -18,6 +18,7 @@ package org.apache.poi.logging; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.util.ExceptionUtil; +import org.apache.poi.util.SuppressForbidden; /** * This class is used to get a log4j logger for the XmlBeans project. @@ -35,6 +36,7 @@ public final class PoiLogManager { private PoiLogManager() { } + @SuppressForbidden("printStackTrace") public static Logger getLogger(Class clz) { try { final Logger logger = LogManager.getLogger(clz); @@ -56,6 +58,7 @@ public final class PoiLogManager { } } + @SuppressForbidden("printStackTrace") public static Logger getLogger(String name) { try { final Logger logger = LogManager.getLogger(name);