ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1857795 - /webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java
Date Fri, 19 Apr 2019 10:43:03 GMT
Author: coheigea
Date: Fri Apr 19 10:43:03 2019
New Revision: 1857795

URL: http://svn.apache.org/viewvc?rev=1857795&view=rev
Log:
Using Deque instead of Stack

Modified:
    webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java

Modified: webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java
URL: http://svn.apache.org/viewvc/webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java?rev=1857795&r1=1857794&r2=1857795&view=diff
==============================================================================
--- webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java
(original)
+++ webservices/neethi/trunk/src/main/java/org/apache/neethi/builders/converters/StaxToDOMConverter.java
Fri Apr 19 10:43:03 2019
@@ -19,7 +19,8 @@
 
 package org.apache.neethi.builders.converters;
 
-import java.util.Stack;
+import java.util.ArrayDeque;
+import java.util.Deque;
 
 import javax.xml.XMLConstants;
 import javax.xml.parsers.DocumentBuilderFactory;
@@ -59,7 +60,7 @@ public class StaxToDOMConverter extends
                                        XMLStreamReader reader)
         throws XMLStreamException {
         
-        Stack<Node> stack = new Stack<Node>();
+        Deque<Node> stack = new ArrayDeque<Node>();
         int event = reader.getEventType();
         while (reader.hasNext()) {
             switch (event) {



Mime
View raw message