]> source.dussan.org Git - poi.git/commitdiff
findbugs: SBSC_USE_STRINGBUFFER_CONCATENATION FormulaParser.parseAsColumnQuantifier...
authorJaven O'Neal <onealj@apache.org>
Fri, 10 Jun 2016 11:16:16 +0000 (11:16 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 10 Jun 2016 11:16:16 +0000 (11:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747685 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/FormulaParser.java

index 7919748f5c026333d84a4851becccc172d8a53b5..35e6fd53eef0dfdacbcbad2ce4f9c0056ae08a76 100644 (file)
@@ -816,19 +816,19 @@ public final class FormulaParser {
             return null;
         }
         GetChar();
-        String name = "";
         if (look == '#') {
             return null;
         }
         if (look == '@') {
             GetChar();
         }
+        StringBuilder name = new StringBuilder();
         while (look!=']') {
-           name += look;
+           name.append(look);
            GetChar();
         }
         Match(']');
-        return name;
+        return name.toString();
     }    
     /**
      * Tries to parse the next as special quantifier