Skip to content

Commit

Permalink
Remove redundant type check
Browse files Browse the repository at this point in the history
The same condition is repeated twice (caught by FindBugs.)
  • Loading branch information
April Schleck committed Apr 1, 2022
1 parent 52629ee commit fc299f8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/javassist/util/proxy/SecurityActions.java
Expand Up @@ -213,7 +213,6 @@ static TheUnsafe getSunMiscUnsafeAnonymously() throws ClassNotFoundException
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());
Expand Down

0 comments on commit fc299f8

Please sign in to comment.