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:
parent
1197db5415
commit
79ebd4915d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user