lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r939611 - in /lucene/dev/trunk/lucene: CHANGES.txt src/java/org/apache/lucene/search/FieldDoc.java
Date Fri, 30 Apr 2010 09:50:47 GMT
Author: mikemccand
Date: Fri Apr 30 09:50:46 2010
New Revision: 939611

URL: http://svn.apache.org/viewvc?rev=939611&view=rev
Log:
LUCENE-2424: fix silly bug in FieldDoc.toString

Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/FieldDoc.java

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=939611&r1=939610&r2=939611&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Fri Apr 30 09:50:46 2010
@@ -287,6 +287,9 @@ Bug fixes
   consitently. Now they both take Directory and version into consideration. 
   (Shai Erera)
 
+* LUCENE-2424: Fix FieldDoc.toString to actually return its fields
+  (Stephen Green via Mike McCandless)
+
 New features
 
 * LUCENE-2128: Parallelized fetching document frequencies during weight

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/FieldDoc.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/FieldDoc.java?rev=939611&r1=939610&r2=939611&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/FieldDoc.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/search/FieldDoc.java Fri Apr 30 09:50:46
2010
@@ -70,6 +70,6 @@ public class FieldDoc extends ScoreDoc {
           }
     sb.setLength(sb.length() - 2); // discard last ", "
     sb.append("]");
-    return super.toString();
+    return sb.toString();
   }
 }



Mime
View raw message