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:
@@ -57,10 +57,8 @@ public class AuthenticationSimpleHttpInvokerRequestExecutor extends
|
||||
* @param con the HTTP connection to prepare
|
||||
* @param contentLength the length of the content to send
|
||||
*
|
||||
* @throws IOException if thrown by HttpURLConnection methods
|
||||
*/
|
||||
protected void doPrepareConnection(HttpURLConnection con, int contentLength)
|
||||
throws IOException {
|
||||
protected void doPrepareConnection(HttpURLConnection con, int contentLength) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,7 +43,7 @@ public class AuthenticationSimpleHttpInvokerRequestExecutorTests {
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
public void tearDown() {
|
||||
SecurityContextHolder.clearContext();
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ public class AuthenticationSimpleHttpInvokerRequestExecutorTests {
|
||||
super(u);
|
||||
}
|
||||
|
||||
public void connect() throws IOException {
|
||||
public void connect() {
|
||||
throw new UnsupportedOperationException("mock not implemented");
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ContextPropagatingRemoteInvocationTests {
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
public void tearDown() {
|
||||
SecurityContextHolder.clearContext();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user