mirror of https://github.com/apache/jclouds.git
Merge pull request #956 from andrewgaul/checkstyle-illegal-throws
Enforce no illegal throws via Checkstyle
This commit is contained in:
commit
c00ef4c941
|
@ -134,7 +134,7 @@ public class SyncProxy implements InvocationHandler {
|
|||
return methodNanos;
|
||||
}
|
||||
|
||||
public Object invoke(Object o, Method method, Object[] args) throws Throwable {
|
||||
public Object invoke(Object o, Method method, Object[] args) throws Exception {
|
||||
if (method.getName().equals("equals")) {
|
||||
return this.equals(o);
|
||||
} else if (method.getName().equals("hashCode")) {
|
||||
|
|
|
@ -99,7 +99,7 @@ public class BinderUtils {
|
|||
return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class<?>[] { clazz }, new InvocationHandler() {
|
||||
|
||||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
public Object invoke(Object proxy, Method method, Object[] args) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ public class AsyncRestClientProxy<T> implements InvocationHandler {
|
|||
|
||||
};
|
||||
|
||||
public Object invoke(Object o, Method method, Object[] args) throws Throwable {
|
||||
public Object invoke(Object o, Method method, Object[] args) throws ExecutionException {
|
||||
if (method.getName().equals("equals")) {
|
||||
return this.equals(o);
|
||||
} else if (method.getName().equals("toString")) {
|
||||
|
|
|
@ -23,7 +23,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<module name="NewlineAtEndOfFile"/>
|
||||
<module name="TreeWalker">
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="IllegalThrows"/>
|
||||
<module name="LineLength">
|
||||
<property name="ignorePattern" value="^import\s.*;$"/>
|
||||
<property name="max" value="120"/>
|
||||
|
|
Loading…
Reference in New Issue