From 344d94477dbd6fb1d5f02125623ee48efc394829 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 20 Mar 2012 14:09:31 +0200 Subject: [PATCH] Removed extra check as Component extends RpcTarget --- src/com/vaadin/ui/AbstractComponent.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)); } /** -- 2.39.5