openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1563822 - /openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java
Date Mon, 03 Feb 2014 10:19:39 GMT
Author: gpetracek
Date: Mon Feb  3 10:19:39 2014
New Revision: 1563822

URL: http://svn.apache.org/r1563822
Log:
OWB-929 InstanceImpl#iterator fixed

Modified:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java

Modified: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java?rev=1563822&r1=1563821&r2=1563822&view=diff
==============================================================================
--- openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java
(original)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/inject/instance/InstanceImpl.java
Mon Feb  3 10:19:39 2014
@@ -24,8 +24,10 @@ import java.io.ObjectOutputStream;
 import java.io.Serializable;
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Type;
+import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.Iterator;
+import java.util.List;
 import java.util.Set;
 
 import javax.enterprise.context.spi.CreationalContext;
@@ -259,7 +261,7 @@ public class InstanceImpl<T> implements 
     public Iterator<T> iterator()
     {
         Set<Bean<?>> beans = resolveBeans();
-        Set<T> instances = new HashSet<T>();
+        List<T> instances = new ArrayList<T>();
         parentCreationalContext.putInjectionPoint(injectionPoint);
         try
         {



Mime
View raw message