aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2018-12-26 13:28:10 +0000
committerDominik Stadler <centic@apache.org>2018-12-26 13:28:10 +0000
commit6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8 (patch)
treef1bc97f162ac391d6a8a47c1335c2a383c555520 /src/java/org
parentd40eb6f37f56a247669d2b4e0113d9587589d318 (diff)
downloadpoi-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.java6
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);