lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index FieldInfos.java
Date Tue, 13 Jul 2004 14:07:34 GMT
otis        2004/07/13 07:07:34

  Modified:    src/java/org/apache/lucene/index FieldInfos.java
  Log:
  - Fix for http://issues.apache.org/bugzilla/show_bug.cgi?id=30058
    Vector -> ArrayList, Hashtable -> HashMap
  
  Revision  Changes    Path
  1.7       +4 -4      jakarta-lucene/src/java/org/apache/lucene/index/FieldInfos.java
  
  Index: FieldInfos.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/FieldInfos.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FieldInfos.java	29 Mar 2004 22:48:02 -0000	1.6
  +++ FieldInfos.java	13 Jul 2004 14:07:34 -0000	1.7
  @@ -33,8 +33,8 @@
    *  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 @@
                              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 @@
     }
   
     public FieldInfo fieldInfo(int fieldNumber) {
  -    return (FieldInfo) byNumber.elementAt(fieldNumber);
  +    return (FieldInfo) byNumber.get(fieldNumber);
     }
   
     public int size() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message