Skip to content

Commit

Permalink
[release] Add hint to findbugs to avoid build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 5, 2021
1 parent aaeb22e commit 180c376
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Method> {

Expand All @@ -1699,6 +1699,7 @@ protected enum DefineClassAction implements PrivilegedAction<Method> {
/**
* {@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);
Expand Down

0 comments on commit 180c376

Please sign in to comment.