aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorApril Schleck <april@atomic.ai>2022-03-31 21:35:37 -0700
committerGitHub <noreply@github.com>2022-03-31 21:35:37 -0700
commitfc299f8bc0c3765ff070f62af7e712e48516b98e (patch)
tree5b2a01bc490cb044b73776a8cb0e1b3e1242a50c
parent52629ee8b867f5a2bb4ff24351b10f24efe1bcac (diff)
downloadjavassist-fc299f8bc0c3765ff070f62af7e712e48516b98e.tar.gz
javassist-fc299f8bc0c3765ff070f62af7e712e48516b98e.zip
Remove redundant type check
The same condition is repeated twice (caught by FindBugs.)
-rwxr-xr-xsrc/main/javassist/util/proxy/SecurityActions.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/javassist/util/proxy/SecurityActions.java b/src/main/javassist/util/proxy/SecurityActions.java
index c940561b..6873e01b 100755
--- a/src/main/javassist/util/proxy/SecurityActions.java
+++ b/src/main/javassist/util/proxy/SecurityActions.java
@@ -213,7 +213,6 @@ class SecurityActions extends SecurityManager
if (e.getCause() instanceof NoSuchFieldException)
throw new ClassNotFoundException("No such instance.", e.getCause());
if (e.getCause() instanceof IllegalAccessException
- || e.getCause() instanceof IllegalAccessException
|| e.getCause() instanceof SecurityException)
throw new ClassNotFoundException("Security denied access.", e.getCause());
throw new RuntimeException(e.getCause());