Vector -> ArrayList, Hashtable -> HashMap


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2004-07-13 14:07:34 +00:00
parent cec270c525
commit 310d57b75e
1 changed files with 4 additions and 4 deletions

View File

@ -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() {