mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
c5056cad36
commit
04f06d16e7
@ -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…
x
Reference in New Issue
Block a user