1
0
mirror of synced 2026-05-22 21:33:16 +00:00

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
@@ -149,7 +149,7 @@ public class AuthenticationTag extends TagSupport {
/**
* Set HTML escaping for this tag, as boolean value.
*/
public void setHtmlEscape(String htmlEscape) throws JspException {
public void setHtmlEscape(String htmlEscape) {
this.htmlEscape = Boolean.parseBoolean(htmlEscape);
}
@@ -156,7 +156,7 @@ public class AuthenticationTagTests {
return lastMessage;
}
protected void writeMessage(String msg) throws JspException {
protected void writeMessage(String msg) {
lastMessage = msg;
}
}
@@ -62,7 +62,7 @@ public class AuthorizeTagTests {
// ========================================================================================================
@Before
public void setUp() throws Exception {
public void setUp() {
SecurityContextHolder.getContext().setAuthentication(currentUser);
StaticWebApplicationContext ctx = new StaticWebApplicationContext();
@@ -82,7 +82,7 @@ public class AuthorizeTagTests {
}
@After
public void tearDown() throws Exception {
public void tearDown() {
SecurityContextHolder.clearContext();
}