diff options
author | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-09 12:47:01 +0000 |
---|---|---|
committer | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-09 12:47:01 +0000 |
commit | 81f5ab2068a97840f6d5f3e8e4c86801749bc6d9 (patch) | |
tree | 882fab3cf186b97b31adbdd212bc1a75793ef882 /java/sca/modules/core/src | |
parent | c90511650a5960682e96bf4904516e5454f68a63 (diff) |
Fixed generics raw type compiler warnings
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core/src')
-rw-r--r-- | java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CachedProxy.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CachedProxy.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CachedProxy.java index d729dfad19..8c8f001eb9 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CachedProxy.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/CachedProxy.java @@ -34,20 +34,20 @@ public class CachedProxy extends Proxy { // This is a cache containing the proxy class constructor for each business interface.
// This improves performance compared to calling Proxy.newProxyInstance()
// every time that a proxy is needed.
- private static WeakHashMap<Class<?>, Object> cache = new WeakHashMap<Class<?>, Object>();
+ private final static WeakHashMap<Class<?>, Constructor<?>> cache = new WeakHashMap<Class<?>, Constructor<?>>();
- public static Object newProxyInstance(ClassLoader classloader, Class aclass[], InvocationHandler invocationhandler)
+ public static Object newProxyInstance(ClassLoader classloader, Class<?> aclass[], InvocationHandler invocationhandler)
throws IllegalArgumentException {
try {
if (invocationhandler == null)
throw new NullPointerException();
// Lookup cached constructor. aclass[0] is the reference's business interface.
- Constructor proxyCTOR;
+ Constructor<?> proxyCTOR;
synchronized (cache) {
- proxyCTOR = (Constructor)cache.get(aclass[0]);
+ proxyCTOR = cache.get(aclass[0]);
}
if (proxyCTOR == null) {
- Class proxyClass = getProxyClass(classloader, aclass);
+ Class<?> proxyClass = getProxyClass(classloader, aclass);
proxyCTOR = proxyClass.getConstructor(constructorParams);
synchronized (cache) {
cache.put(aclass[0], proxyCTOR);
|