Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-01-09 18:45:21 -0500
committerSergey Prigogin2012-01-09 18:45:21 -0500
commit9b83d661324477c580489de7269dd5673103d74d (patch)
tree39732193281c7a10dca39a4a39de09708cecd6cf /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite
parentecd14f70f8ffe70114d2bbb0129ab703d96d1813 (diff)
downloadorg.eclipse.cdt-9b83d661324477c580489de7269dd5673103d74d.tar.gz
org.eclipse.cdt-9b83d661324477c580489de7269dd5673103d74d.tar.xz
org.eclipse.cdt-9b83d661324477c580489de7269dd5673103d74d.zip
Use ArrayList instead of Vector.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/commenthandler/NodeCommenter.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/commenthandler/NodeCommenter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/commenthandler/NodeCommenter.java
index 8938c60ff2..ec0d9f9afc 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/commenthandler/NodeCommenter.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/commenthandler/NodeCommenter.java
@@ -12,7 +12,8 @@
*******************************************************************************/
package org.eclipse.cdt.internal.core.dom.rewrite.commenthandler;
-import java.util.Vector;
+import java.util.ArrayList;
+import java.util.List;
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.IASTComment;
@@ -63,13 +64,13 @@ public class NodeCommenter {
protected ASTVisitor visitor;
protected CommentHandler commHandler;
protected NodeCommentMap commentMap;
- protected Vector<IASTNode> children;
+ protected List<IASTNode> children;
public NodeCommenter(ASTVisitor visitor, CommentHandler commHandler, NodeCommentMap commentMap) {
this.visitor = visitor;
this.commHandler = commHandler;
this.commentMap = commentMap;
- this.children = new Vector<IASTNode>();
+ this.children = new ArrayList<IASTNode>();
}
protected void writeNodeList(IASTNode[] nodes) {

Back to the top