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:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user