From a77ed7204b83823fac21175ecd5ee6565fd71ea7 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sat, 17 Apr 2010 12:48:39 +0200 Subject: Use ArrayList (supposedly faster because unsynchonized) rather than Vector. --- org/madore/damlengine/TodoDefaultElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org/madore/damlengine') diff --git a/org/madore/damlengine/TodoDefaultElement.java b/org/madore/damlengine/TodoDefaultElement.java index 4041f82..942bca1 100644 --- a/org/madore/damlengine/TodoDefaultElement.java +++ b/org/madore/damlengine/TodoDefaultElement.java @@ -2,7 +2,7 @@ package org.madore.damlengine; import java.util.Map; import java.util.HashMap; -import java.util.Vector; +import java.util.ArrayList; import org.w3c.dom.*; public class TodoDefaultElement extends TodoElement { @@ -24,7 +24,7 @@ public class TodoDefaultElement extends TodoElement { public void handleAttributes() { NamedNodeMap attrs = this.node.getAttributes(); Node attr; - Vector toProcess = new Vector(); + ArrayList toProcess = new ArrayList(); for ( int i=0 ; (attr=attrs.item(i)) != null ; i++ ) { TodoAttr it = TodoAttr.getTodoAttr((Attr)attr, this.node, this.context, new HashMap()); @@ -38,7 +38,7 @@ public class TodoDefaultElement extends TodoElement { System.err.println("handling a "+this.node.getNodeName()+" element"); NodeList children = this.node.getChildNodes(); Node child; - Vector toProcess = new Vector(); + ArrayList toProcess = new ArrayList(); for ( int i=0 ; (child=children.item(i)) != null ; i++ ) { if ( child.getNodeType() == Node.ELEMENT_NODE ) { TodoElement it = TodoElement.getTodoElement((Element)child, this.context, -- cgit v1.2.3