diff options
author | Artur Signell <artur@vaadin.com> | 2012-03-20 14:09:31 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-03-21 15:27:58 +0200 |
commit | 344d94477dbd6fb1d5f02125623ee48efc394829 (patch) | |
tree | ff19671db1d73181ba0e1b8207e2fb0c93fb94bb /src | |
parent | 77344f9608f853a246999e756394790104209281 (diff) | |
download | vaadin-framework-344d94477dbd6fb1d5f02125623ee48efc394829.tar.gz vaadin-framework-344d94477dbd6fb1d5f02125623ee48efc394829.zip |
Removed extra check as Component extends RpcTarget
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/ui/AbstractComponent.java | 9 |
1 files 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 <T> void registerRpcImplementation(T implementation, Class<T> rpcInterfaceType) { - if (this instanceof RpcTarget) { - rpcManagerMap.put(rpcInterfaceType, new ServerRpcManager<T>(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<T>(this, + implementation, rpcInterfaceType)); } /** |