mirror of https://github.com/apache/lucene.git
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:
parent
a739470963
commit
fb295f381c
|
@ -659,7 +659,7 @@ public class SolrPluginUtils {
|
|||
* @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 == ')' ||
|
||||
|
|
Loading…
Reference in New Issue