findbugs: SBSC_USE_STRINGBUFFER_CONCATENATION FormulaParser.parseAsColumnQuantifier() concatenates strings using + in a loop

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1747685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-10 11:16:16 +00:00
parent 1197db5415
commit 79ebd4915d

View 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