From fc299f8bc0c3765ff070f62af7e712e48516b98e Mon Sep 17 00:00:00 2001 From: April Schleck Date: Thu, 31 Mar 2022 21:35:37 -0700 Subject: [PATCH] Remove redundant type check The same condition is repeated twice (caught by FindBugs.) --- src/main/javassist/util/proxy/SecurityActions.java | 1 - 1 file changed, 1 deletion(-) 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()); -- 2.39.5