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

@@ -42,7 +42,7 @@ public abstract class AbstractWebServerIntegrationTests {
}
}
protected final MockMvc createMockMvc(String... configLocations) throws Exception {
protected final MockMvc createMockMvc(String... configLocations) {
if (this.context != null) {
throw new IllegalStateException("context is already loaded");
}

View File

@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
public class TestController {
@RequestMapping(value = "/secure/file?with?special?chars.htm", method = RequestMethod.GET)
public String sec1255TestUrl() throws IOException {
public String sec1255TestUrl() {
return "I'm file?with?special?chars.htm";
}