summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2015-05-28 10:55:35 +0300
committerVaadin Code Review <review@vaadin.com>2015-06-05 08:03:42 +0000
commit177805d898b1f6ed39ab5fb6a0c73ca98103b172 (patch)
tree70a13cae9b6cab4507cac168744f42878360307e /server
parentc05d318ca5ac663921ee1704a0f70533c5e10830 (diff)
downloadvaadin-framework-177805d898b1f6ed39ab5fb6a0c73ca98103b172.tar.gz
vaadin-framework-177805d898b1f6ed39ab5fb6a0c73ca98103b172.zip
Remove redundant array copy (#18040)
Change-Id: I86ffcd63441ab55a4fec95b1ba7bd017cabd4c72
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/ServerRpcManager.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/server/src/com/vaadin/server/ServerRpcManager.java b/server/src/com/vaadin/server/ServerRpcManager.java
index 3a2cb3a32c..ae99622a4a 100644
--- a/server/src/com/vaadin/server/ServerRpcManager.java
+++ b/server/src/com/vaadin/server/ServerRpcManager.java
@@ -153,19 +153,9 @@ public class ServerRpcManager<T extends ServerRpc> implements Serializable {
public void applyInvocation(ServerRpcMethodInvocation invocation)
throws RpcInvocationException {
Method method = invocation.getMethod();
- Class<?>[] parameterTypes = method.getParameterTypes();
- Object[] args = new Object[parameterTypes.length];
Object[] arguments = invocation.getParameters();
- for (int i = 0; i < args.length; i++) {
- // no conversion needed for basic cases
- // Class<?> type = parameterTypes[i];
- // if (type.isPrimitive()) {
- // type = boxedTypes.get(type);
- // }
- args[i] = arguments[i];
- }
try {
- method.invoke(implementation, args);
+ method.invoke(implementation, arguments);
} catch (Exception e) {
throw new RpcInvocationException("Unable to invoke method "
+ invocation.getMethodName() + " in "