Issue #4691 - Remove unnecessary throws from getMethodHandleLookup.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-03-23 11:44:06 +11:00
parent 10f4fda0de
commit d4c2893843
2 changed files with 2 additions and 2 deletions

View File

@ -704,7 +704,7 @@ public abstract class JavaxWebSocketFrameHandlerFactory
}
}
private MethodHandles.Lookup getMethodHandleLookup(Class<?> endpointClass) throws InvalidWebSocketException
private MethodHandles.Lookup getMethodHandleLookup(Class<?> endpointClass)
{
return MethodHandles.publicLookup().in(endpointClass);
}

View File

@ -456,7 +456,7 @@ public class JettyWebSocketFrameHandlerFactory extends ContainerLifeCycle
throw new InvalidSignatureException(err.toString());
}
private MethodHandles.Lookup getMethodHandleLookup(Class<?> endpointClass) throws InvalidWebSocketException
private MethodHandles.Lookup getMethodHandleLookup(Class<?> endpointClass)
{
return MethodHandles.publicLookup().in(endpointClass);
}