From 310d57b75e10e252f7b231ff54a30d0cf00bdf46 Mon Sep 17 00:00:00 2001 From: Otis Gospodnetic Date: Tue, 13 Jul 2004 14:07:34 +0000 Subject: [PATCH] - Fix for http://issues.apache.org/bugzilla/show_bug.cgi?id=30058 Vector -> ArrayList, Hashtable -> HashMap git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150374 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/index/FieldInfos.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/lucene/index/FieldInfos.java b/src/java/org/apache/lucene/index/FieldInfos.java index d290dab1002..ffafb330f9b 100644 --- a/src/java/org/apache/lucene/index/FieldInfos.java +++ b/src/java/org/apache/lucene/index/FieldInfos.java @@ -33,8 +33,8 @@ import org.apache.lucene.store.InputStream; * accessing this object. */ final class FieldInfos { - private Vector byNumber = new Vector(); - private Hashtable byName = new Hashtable(); + private ArrayList byNumber = new ArrayList(); + private HashMap byName = new HashMap(); FieldInfos() { add("", false); @@ -131,7 +131,7 @@ final class FieldInfos { boolean storeTermVector) { FieldInfo fi = new FieldInfo(name, isIndexed, byNumber.size(), storeTermVector); - byNumber.addElement(fi); + byNumber.add(fi); byName.put(name, fi); } @@ -152,7 +152,7 @@ final class FieldInfos { } public FieldInfo fieldInfo(int fieldNumber) { - return (FieldInfo) byNumber.elementAt(fieldNumber); + return (FieldInfo) byNumber.get(fieldNumber); } public int size() {