jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1205947 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java
Date Thu, 24 Nov 2011 18:17:50 GMT
Author: dbrosius
Date: Thu Nov 24 18:17:50 2011
New Revision: 1205947

URL: http://svn.apache.org/viewvc?rev=1205947&view=rev
Log:
use StringBuffer correctly

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java?rev=1205947&r1=1205946&r2=1205947&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MoreLikeThis.java
Thu Nov 24 18:17:50 2011
@@ -650,10 +650,10 @@ public final class MoreLikeThis {
      */
     public String describeParams() {
         StringBuffer sb = new StringBuffer();
-        sb.append("\t" + "maxQueryTerms  : " + maxQueryTerms + "\n");
-        sb.append("\t" + "minWordLen     : " + minWordLen + "\n");
-        sb.append("\t" + "maxWordLen     : " + maxWordLen + "\n");
-        sb.append("\t" + "fieldNames     : ");
+        sb.append("\tmaxQueryTerms  : ").append(maxQueryTerms).append("\n");
+        sb.append("\tminWordLen     : ").append(minWordLen).append("\n");
+        sb.append("\tmaxWordLen     : ").append(maxWordLen).append("\n");
+        sb.append("\tfieldNames     : ");
         String delim = "";
         for (int i = 0; i < fieldNames.length; i++) {
             String fieldName = fieldNames[i];
@@ -661,9 +661,9 @@ public final class MoreLikeThis {
             delim = ", ";
         }
         sb.append("\n");
-        sb.append("\t" + "boost          : " + boost + "\n");
-        sb.append("\t" + "minTermFreq    : " + minTermFreq + "\n");
-        sb.append("\t" + "minDocFreq     : " + minDocFreq + "\n");
+        sb.append("\tboost          : ").append(boost).append("\n");
+        sb.append("\tminTermFreq    : ").append(minTermFreq).append("\n");
+        sb.append("\tminDocFreq     : ").append(minDocFreq).append("\n");
         return sb.toString();
     }
 



Mime
View raw message