openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r894218 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Date Mon, 28 Dec 2009 18:39:33 GMT
Author: struberg
Date: Mon Dec 28 18:39:33 2009
New Revision: 894218

URL: http://svn.apache.org/viewvc?rev=894218&view=rev
Log:
OWB-210 use a Set instead of a List to store Interfaces of a bean for proxying

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java?rev=894218&r1=894217&r2=894218&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/JavassistProxyFactory.java
Mon Dec 28 18:39:33 2009
@@ -16,8 +16,7 @@
 import java.io.Serializable;
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.HashSet;
 import java.util.Set;
 
 import javassist.util.proxy.ProxyFactory;
@@ -46,7 +45,7 @@
         try
         {
             Set<Type> types = bean.getTypes();
-            List<Class<?>> interfaceList = new ArrayList<Class<?>>();
+            Set<Class<?>> interfaceList = new HashSet<Class<?>>();
             Class<?> superClass = null;
             for (Type generic : types)
             {



Mime
View raw message