import scala.concurrent.ExecutionContext;
import scala.concurrent.Future;
-class RemoteDOMRpcFuture extends AbstractFuture<DOMRpcResult> implements CheckedFuture<DOMRpcResult, DOMRpcException> {
+final class RemoteDOMRpcFuture extends AbstractFuture<DOMRpcResult>
+ implements CheckedFuture<DOMRpcResult, DOMRpcException> {
private static final Logger LOG = LoggerFactory.getLogger(RemoteDOMRpcFuture.class);
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 ex) {
+ private static DOMRpcException mapException(final ExecutionException ex) {
final Throwable cause = ex.getCause();
if (cause instanceof DOMRpcException) {
return (DOMRpcException) cause;
private final class FutureUpdater extends OnComplete<Object> {
@Override
- public void onComplete(final Throwable error, final Object reply) throws Throwable {
+ public void onComplete(final Throwable error, final Object reply) {
if (error != null) {
RemoteDOMRpcFuture.this.failNow(error);
} else if (reply instanceof RpcResponse) {