diff options
author | Dominik Stadler <centic@apache.org> | 2016-07-17 21:18:07 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-07-17 21:18:07 +0000 |
commit | 8924e1260bf1d1f7f8c086c0fa046fc261d2951c (patch) | |
tree | dbb0364ab25e4153a012022f0cc349b55e0ef71d /src/java/org/apache/poi/ss/formula/LazyAreaEval.java | |
parent | 22a9d458cfaa275a810c7e81c7e4a8496c132758 (diff) | |
download | poi-8924e1260bf1d1f7f8c086c0fa046fc261d2951c.tar.gz poi-8924e1260bf1d1f7f8c086c0fa046fc261d2951c.zip |
Fix some IntelliJ and Findbugs warnings: StringBuilder, foreach, append(), ...
test-updates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss/formula/LazyAreaEval.java')
-rw-r--r-- | src/java/org/apache/poi/ss/formula/LazyAreaEval.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/java/org/apache/poi/ss/formula/LazyAreaEval.java b/src/java/org/apache/poi/ss/formula/LazyAreaEval.java index 0ac65a758b..4bfbf41d30 100644 --- a/src/java/org/apache/poi/ss/formula/LazyAreaEval.java +++ b/src/java/org/apache/poi/ss/formula/LazyAreaEval.java @@ -77,15 +77,13 @@ final class LazyAreaEval extends AreaEvalBase { public String toString() { CellReference crA = new CellReference(getFirstRow(), getFirstColumn()); CellReference crB = new CellReference(getLastRow(), getLastColumn()); - StringBuffer sb = new StringBuffer(); - sb.append(getClass().getName()).append("["); - sb.append(_evaluator.getSheetNameRange()); - sb.append('!'); - sb.append(crA.formatAsString()); - sb.append(':'); - sb.append(crB.formatAsString()); - sb.append("]"); - return sb.toString(); + return getClass().getName() + "[" + + _evaluator.getSheetNameRange() + + '!' + + crA.formatAsString() + + ':' + + crB.formatAsString() + + "]"; } /** |