aboutsummaryrefslogtreecommitdiffstats
path: root/src/resources
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-07-24 22:57:18 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-07-24 22:57:18 +0000
commit555923c40b49f6ce2b0ffb7220fe4be16a71cdbc (patch)
treee72c9bb3a9c5acec69da663bf6f49186e3c5ac0b /src/resources
parent192fbc1ec1cfd123bdb3141504c93a5ac11c4a3d (diff)
downloadpoi-555923c40b49f6ce2b0ffb7220fe4be16a71cdbc.tar.gz
poi-555923c40b49f6ce2b0ffb7220fe4be16a71cdbc.zip
#62564 - replace Thread.currentThread().getContextClassLoader() with getClass().getClassLoader()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1836590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/devtools/forbidden-signatures.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/devtools/forbidden-signatures.txt b/src/resources/devtools/forbidden-signatures.txt
index 2ea708740c..e64d7e02cf 100644
--- a/src/resources/devtools/forbidden-signatures.txt
+++ b/src/resources/devtools/forbidden-signatures.txt
@@ -79,8 +79,9 @@ java.net.InetAddress#getCanonicalHostName()
java.net.InetSocketAddress#getHostName() @ Use getHostString() instead, which avoids a DNS lookup
-@defaultMessage this method needs special permission
-java.lang.Thread#getAllStackTraces()
+
+java.lang.Thread#getAllStackTraces() @ this method needs special permission
+java.lang.Thread#getContextClassLoader() @ use getClass().getClassLoader() instead of getContextClassLoader() (see https://stackoverflow.com/a/36228195/2066598)
@defaultMessage Avoid unchecked warnings by using Collections#empty(List|Map|Set) methods
java.util.Collections#EMPTY_LIST