Remove redundant throws clauses
Removes exceptions that are declared in a method's signature but never thrown by the method itself or its implementations/derivatives.
This commit is contained in:
@@ -61,8 +61,7 @@ public final class BearerTokenAuthenticationEntryPoint implements Authentication
|
||||
@Override
|
||||
public void commence(
|
||||
HttpServletRequest request, HttpServletResponse response,
|
||||
AuthenticationException authException)
|
||||
throws IOException, ServletException {
|
||||
AuthenticationException authException) {
|
||||
|
||||
HttpStatus status = HttpStatus.UNAUTHORIZED;
|
||||
|
||||
|
||||
@@ -59,8 +59,7 @@ public final class BearerTokenAccessDeniedHandler implements AccessDeniedHandler
|
||||
@Override
|
||||
public void handle(
|
||||
HttpServletRequest request, HttpServletResponse response,
|
||||
AccessDeniedException accessDeniedException)
|
||||
throws IOException, ServletException {
|
||||
AccessDeniedException accessDeniedException) {
|
||||
|
||||
Map<String, String> parameters = new LinkedHashMap<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user