lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r836083 - /lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
Date Sat, 14 Nov 2009 01:07:35 GMT
Author: uschindler
Date: Sat Nov 14 01:07:34 2009
New Revision: 836083

URL: http://svn.apache.org/viewvc?rev=836083&view=rev
Log:
Fix wrong cast in MemoryIndexTest

Modified:
    lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java

Modified: lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java?rev=836083&r1=836082&r2=836083&view=diff
==============================================================================
--- lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
(original)
+++ lucene/java/trunk/contrib/memory/src/test/org/apache/lucene/index/memory/MemoryIndexTest.java
Sat Nov 14 01:07:34 2009
@@ -41,6 +41,7 @@
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
+import org.apache.lucene.document.Fieldable;
 import org.apache.lucene.index.IndexWriter;
 import org.apache.lucene.index.IndexReader;
 import org.apache.lucene.queryParser.ParseException;
@@ -391,9 +392,9 @@
   
   private MemoryIndex createMemoryIndex(Document doc) {
     MemoryIndex index = new MemoryIndex();
-    Iterator iter = doc.getFields().iterator();
+    Iterator<Fieldable> iter = doc.getFields().iterator();
     while (iter.hasNext()) {
-      Field field = (Field) iter.next();
+      Fieldable field = iter.next();
       index.addField(field.name(), field.stringValue(), analyzer);
     }
     return index;



Mime
View raw message