]> source.dussan.org Git - javassist.git/commitdiff
Remove redundant type check 409/head
authorApril Schleck <april@atomic.ai>
Fri, 1 Apr 2022 04:35:37 +0000 (21:35 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Apr 2022 04:35:37 +0000 (21:35 -0700)
The same condition is repeated twice (caught by FindBugs.)

src/main/javassist/util/proxy/SecurityActions.java

index c940561b97e6fdb97a39391af27e231043883f21..6873e01b9c43acf0937dd545770b4744125de209 100755 (executable)
@@ -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());