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

@@ -52,7 +52,7 @@ public class HelloWebfluxFnApplicationTests {
}
@Test
public void basicWhenNoCredentialsThenUnauthorized() throws Exception {
public void basicWhenNoCredentialsThenUnauthorized() {
this.rest
.get()
.uri("/")
@@ -61,7 +61,7 @@ public class HelloWebfluxFnApplicationTests {
}
@Test
public void basicWhenValidCredentialsThenOk() throws Exception {
public void basicWhenValidCredentialsThenOk() {
this.rest
.get()
.uri("/")
@@ -72,7 +72,7 @@ public class HelloWebfluxFnApplicationTests {
}
@Test
public void basicWhenInvalidCredentialsThenUnauthorized() throws Exception {
public void basicWhenInvalidCredentialsThenUnauthorized() {
this.rest
.get()
.uri("/")
@@ -83,7 +83,7 @@ public class HelloWebfluxFnApplicationTests {
}
@Test
public void mockSupportWhenMutateWithMockUserThenOk() throws Exception {
public void mockSupportWhenMutateWithMockUserThenOk() {
this.rest
.mutateWith(mockUser())
.get()
@@ -95,7 +95,7 @@ public class HelloWebfluxFnApplicationTests {
@Test
@WithMockUser
public void mockSupportWhenWithMockUserThenOk() throws Exception {
public void mockSupportWhenWithMockUserThenOk() {
this.rest
.get()
.uri("/")