diff options
author | Dominik Stadler <centic@apache.org> | 2018-12-26 13:28:10 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2018-12-26 13:28:10 +0000 |
commit | 6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8 (patch) | |
tree | f1bc97f162ac391d6a8a47c1335c2a383c555520 /src/java/org | |
parent | d40eb6f37f56a247669d2b4e0113d9587589d318 (diff) | |
download | poi-6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8.tar.gz poi-6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8.zip |
Fix various IDE warnings and some JavaDoc adjustments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/ss/formula/functions/Complex.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/ss/formula/functions/Complex.java b/src/java/org/apache/poi/ss/formula/functions/Complex.java index 2282247a59..b616eba7a7 100644 --- a/src/java/org/apache/poi/ss/formula/functions/Complex.java +++ b/src/java/org/apache/poi/ss/formula/functions/Complex.java @@ -72,7 +72,7 @@ public class Complex extends Var2or3ArgFunction implements FreeRefFunction { } catch (EvaluationException e) { return e.getErrorEval(); } - double realNum = 0; + double realNum; try { realNum = OperandResolver.coerceValueToDouble(veText1); } catch (EvaluationException e) { @@ -85,7 +85,7 @@ public class Complex extends Var2or3ArgFunction implements FreeRefFunction { } catch (EvaluationException e) { return e.getErrorEval(); } - double realINum = 0; + double realINum; try { realINum = OperandResolver.coerceValueToDouble(veINum); } catch (EvaluationException e) { @@ -104,7 +104,7 @@ public class Complex extends Var2or3ArgFunction implements FreeRefFunction { return ErrorEval.VALUE_INVALID; } - StringBuffer strb = new StringBuffer(""); + StringBuilder strb = new StringBuilder(); if (realNum != 0) { if (isDoubleAnInt(realNum)) { strb.append((int)realNum); |