Remove declarations of unthrown exceptions Change-Id: I5948ad00a2f551b12d67d9633cf00244b3ebffec
diff --git a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthGitWrappedResponse.java b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthGitWrappedResponse.java index 9b046cf..947d931 100644 --- a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthGitWrappedResponse.java +++ b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthGitWrappedResponse.java
@@ -44,7 +44,7 @@ super.sendError(sc, msg); } - private void requestBasicAuthenticationHandshake() throws IOException { + private void requestBasicAuthenticationHandshake() { setStatus(SC_UNAUTHORIZED); StringBuilder v = new StringBuilder(); v.append(GIT_AUTHENTICATION_BASIC);
diff --git a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthWebFilter.java b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthWebFilter.java index d11745e..cde4fbf 100644 --- a/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthWebFilter.java +++ b/github-oauth/src/main/java/com/googlesource/gerrit/plugins/github/oauth/OAuthWebFilter.java
@@ -131,7 +131,7 @@ private ServletResponse logout(ServletRequest request, ServletResponse response, FilterChain chain, - HttpServletRequest httpRequest) throws IOException, ServletException { + HttpServletRequest httpRequest) { getGitHubLogin(request).logout(); return new GitHubLogoutServletResponse((HttpServletResponse) response, config.logoutRedirectUrl);