From: Adrian B. <ej...@us...> - 2004-07-15 12:55:21
|
User: ejort Date: 04/07/15 05:55:14 Modified: src/main/org/jboss/resource/adapter/jdbc Tag: Branch_3_2 PrivilegedProxy.java Log: Use a HashSet rather than an ArrayList to avoid duplicate interfaces. Revision Changes Path No revision No revision 1.1.2.3 +5 -5 jbosscx/src/main/org/jboss/resource/adapter/jdbc/Attic/PrivilegedProxy.java Index: PrivilegedProxy.java =================================================================== RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/Attic/PrivilegedProxy.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- PrivilegedProxy.java 25 Jun 2004 20:42:12 -0000 1.1.2.2 +++ PrivilegedProxy.java 15 Jul 2004 12:55:14 -0000 1.1.2.3 @@ -1,13 +1,13 @@ package org.jboss.resource.adapter.jdbc; -import java.security.PrivilegedExceptionAction; -import java.security.AccessController; -import java.security.PrivilegedActionException; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; -import java.util.ArrayList; +import java.security.PrivilegedExceptionAction; +import java.security.AccessController; +import java.security.PrivilegedActionException; +import java.util.HashSet; /** A PrivilegedExceptionAction that proxies whatever interfaces the target * object supports. When an invocation through an interface method is done, @@ -86,7 +86,7 @@ } public Object run() throws Exception { - ArrayList tmp = new ArrayList(); + HashSet tmp = new HashSet(); // Get all interfaces Class c = target.getClass(); do |