diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/loading/ClassInjector.java b/byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/loading/ClassInjector.java index b6f10c80907..8ea1bf9a092 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/loading/ClassInjector.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/loading/ClassInjector.java @@ -1687,7 +1687,7 @@ interface Lookup { /** * A privileged action to resolve {@code java.lang.invoke.MethodHandles$Lookup#defineClass}, or {@code null}, * if not available. This method must be invoked reflectively since the security manager checks the scope of - * invocation for this method such that no {@link JavaDispatcher} can be used. + * invocation for this method such that {@link JavaDispatcher} cannot be used. */ protected enum DefineClassAction implements PrivilegedAction { @@ -1699,6 +1699,7 @@ protected enum DefineClassAction implements PrivilegedAction { /** * {@inheritDoc} */ + @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Exception should not be rethrown but be nulled out") public Method run() { try { return Class.forName("java.lang.invoke.MethodHandles$Lookup").getMethod("defineClass", byte[].class);