Author: asoldano
Date: 2014-10-23 13:04:54 -0400 (Thu, 23 Oct 2014)
New Revision: 19028
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/HandlerChainSortInterceptor.java
Log:
[JBWS-3848] Use array lists
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/HandlerChainSortInterceptor.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/HandlerChainSortInterceptor.java 2014-10-23
17:04:10 UTC (rev 19027)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/HandlerChainSortInterceptor.java 2014-10-23
17:04:54 UTC (rev 19028)
@@ -22,7 +22,6 @@
package org.jboss.wsf.stack.cxf.client.configuration;
import java.util.ArrayList;
-import java.util.LinkedList;
import java.util.List;
import javax.xml.ws.Binding;
@@ -158,21 +157,21 @@
{
case PRE :
if (pre == null) {
- pre = new LinkedList<Handler>();
+ pre = new ArrayList<Handler>(4);
}
pre.add(h);
break;
case POST :
if (post == null) {
- post = new LinkedList<Handler>();
+ post = new ArrayList<Handler>(4);
}
post.add(h);
break;
default :
if (ep == null) {
- ep = new LinkedList<Handler>();
+ ep = new ArrayList<Handler>();
}
ep.add(h);
break;