private final QName rpcName;
private RemoteDOMRpcFuture(final QName rpcName) {
- this.rpcName = Preconditions.checkNotNull(rpcName,"rpcName");
+ this.rpcName = Preconditions.checkNotNull(rpcName, "rpcName");
}
public static RemoteDOMRpcFuture create(final QName rpcName) {
}
}
- private DOMRpcException mapException(final ExecutionException e) {
- final Throwable cause = e.getCause();
+ private static DOMRpcException mapException(final ExecutionException ex) {
+ final Throwable cause = ex.getCause();
if (cause instanceof DOMRpcException) {
return (DOMRpcException) cause;
}
- return new RemoteDOMRpcException("Exception during invoking RPC", e);
+ return new RemoteDOMRpcException("Exception during invoking RPC", ex);
}
private final class FutureUpdater extends OnComplete<Object> {