aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2024-11-24 20:02:18 +0000
committerPJ Fanning <fanningpj@apache.org>2024-11-24 20:02:18 +0000
commitba79c4c3c1383fa0eb1693febaa5e761efd4a318 (patch)
treead20ddf2f07f176574256d8b4c1bc2383d24ef28 /poi
parenta2af56511f07736ed73a3812c9eb1adf892077ca (diff)
downloadpoi-ba79c4c3c1383fa0eb1693febaa5e761efd4a318.tar.gz
poi-ba79c4c3c1383fa0eb1693febaa5e761efd4a318.zip
forbidden-apis
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/logging/PoiLogManager.java3
1 files changed, 3 insertions, 0 deletions
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);