summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-04 03:41:41 (EST)
committerStefan Liebig2008-02-04 03:41:41 (EST)
commitd0e844247601d7c4f25a85825fb921848db5ba43 (patch)
tree439f8742972f88a24798440284928d642a181a91
parent85de00fbd12ac110ce9249e132445d9ae3abeace (diff)
downloadorg.eclipse.riena-d0e844247601d7c4f25a85825fb921848db5ba43.zip
org.eclipse.riena-d0e844247601d7c4f25a85825fb921848db5ba43.tar.gz
org.eclipse.riena-d0e844247601d7c4f25a85825fb921848db5ba43.tar.bz2
generics + Arrays.toString()
-rw-r--r--org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/hooks/AbstractHooksProxy.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/hooks/AbstractHooksProxy.java b/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/hooks/AbstractHooksProxy.java
index d7804cb..6d92a23 100644
--- a/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/hooks/AbstractHooksProxy.java
+++ b/org.eclipse.riena.communication.core/src/org/eclipse/riena/communication/core/hooks/AbstractHooksProxy.java
@@ -16,6 +16,7 @@ import java.lang.reflect.Method;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
@@ -74,7 +75,7 @@ public abstract class AbstractHooksProxy implements InvocationHandler {
Class<?>[] paramTypes = tmpMethod.getParameterTypes();
int i = 0;
boolean found = true;
- for (Class param : paramTypes) {
+ for (Class<?> param : paramTypes) {
if (!param.isAssignableFrom(args[i].getClass())) {
found = false;
break;
@@ -87,7 +88,7 @@ public abstract class AbstractHooksProxy implements InvocationHandler {
}
}
if (proxyMethod == null) {
- throw new NoSuchMethodException(proxiedInstance + " " + method.getName() + "," + args);
+ throw new NoSuchMethodException(proxiedInstance + " " + method.getName() + "," + Arrays.toString(args));
}
Subject subject = getSubject();
if (subject == null) {