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:
Lars Grefer
2019-08-23 01:03:54 +02:00
parent f0515a021c
commit 34dd5fea30
418 changed files with 1146 additions and 1273 deletions

View File

@@ -418,8 +418,7 @@ public class CasAuthenticationProviderTests {
this.returnTicket = returnTicket;
}
public Assertion validate(final String ticket, final String service)
throws TicketValidationException {
public Assertion validate(final String ticket, final String service) {
if (returnTicket) {
return new AssertionImpl("rod");
}

View File

@@ -128,7 +128,7 @@ public class CasAuthenticationTokenMixinTests {
}
@Test
public void deserializeCasAuthenticationTest() throws IOException, JSONException {
public void deserializeCasAuthenticationTest() throws IOException {
CasAuthenticationToken token = mapper.readValue(CAS_TOKEN_JSON, CasAuthenticationToken.class);
assertThat(token).isNotNull();
assertThat(token.getPrincipal()).isNotNull().isInstanceOf(User.class);