You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2008/03/05 00:35:48 UTC

svn commit: r633706 - /lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java

Author: yonik
Date: Tue Mar  4 15:35:43 2008
New Revision: 633706

URL: http://svn.apache.org/viewvc?rev=633706&view=rev
Log:
StringBuffer -> StringBuilder

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java?rev=633706&r1=633705&r2=633706&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/util/SolrPluginUtils.java Tue Mar  4 15:35:43 2008
@@ -659,7 +659,7 @@
    * @see QueryParser#escape
    */
   public static CharSequence partialEscape(CharSequence s) {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     for (int i = 0; i < s.length(); i++) {
       char c = s.charAt(i);
       if (c == '\\' || c == '!' || c == '(' || c == ')' ||