StringBuffer -> StringBuilder

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@633706 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-03-04 23:35:43 +00:00
parent a739470963
commit fb295f381c
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ public class SolrPluginUtils {
* @see QueryParser#escape * @see QueryParser#escape
*/ */
public static CharSequence partialEscape(CharSequence s) { public static CharSequence partialEscape(CharSequence s) {
StringBuffer sb = new StringBuffer(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < s.length(); i++) { for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i); char c = s.charAt(i);
if (c == '\\' || c == '!' || c == '(' || c == ')' || if (c == '\\' || c == '!' || c == '(' || c == ')' ||