From: Artur Signell Date: Tue, 20 Mar 2012 12:09:31 +0000 (+0200) Subject: Removed extra check as Component extends RpcTarget X-Git-Tag: 7.0.0.alpha2~273 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=344d94477dbd6fb1d5f02125623ee48efc394829;p=vaadin-framework.git Removed extra check as Component extends RpcTarget --- diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java index db6be1e4b8..e440bc57c5 100644 --- a/src/com/vaadin/ui/AbstractComponent.java +++ b/src/com/vaadin/ui/AbstractComponent.java @@ -1603,13 +1603,8 @@ public abstract class AbstractComponent implements Component, MethodEventSource */ protected void registerRpcImplementation(T implementation, Class rpcInterfaceType) { - if (this instanceof RpcTarget) { - rpcManagerMap.put(rpcInterfaceType, new ServerRpcManager(this, - implementation, rpcInterfaceType)); - } else { - throw new RuntimeException( - "Cannot register an RPC implementation for a component that is not an RpcTarget"); - } + rpcManagerMap.put(rpcInterfaceType, new ServerRpcManager(this, + implementation, rpcInterfaceType)); } /**