openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1830463 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Date Sat, 28 Apr 2018 16:51:35 GMT
Author: struberg
Date: Sat Apr 28 16:51:35 2018
New Revision: 1830463

URL: http://svn.apache.org/viewvc?rev=1830463&view=rev
Log:
OWB-1243 also implement EventMetadata via LinkedList instead of j.u.Stack

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java?rev=1830463&r1=1830462&r2=1830463&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Sat Apr 28 16:51:35 2018
@@ -35,7 +35,6 @@ import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
-import java.util.Stack;
 
 /** {@inheritDoc} */
 public class CreationalContextImpl<T> implements CreationalContext<T>, Serializable
@@ -56,7 +55,7 @@ public class CreationalContextImpl<T> im
     /**
      * The EventMetadata objects to be injected into injection points of type EventMetadata
      */
-    private transient Stack<EventMetadata> eventMetadata;
+    private transient LinkedList<EventMetadata> eventMetadata;
 
     /**
      * Contextual bean dependent instances
@@ -156,7 +155,7 @@ public class CreationalContextImpl<T> im
     {
         if (eventMetadata == null)
         {
-            eventMetadata = new Stack<>();
+            eventMetadata = new LinkedList<>();
         }
         eventMetadata.push(metadata);
     }



Mime
View raw message