diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-01-06 17:51:22 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-01-06 17:51:22 +0000 |
commit | fb2dbf1e7355bf37a9ab71cfca57d5c1430484af (patch) | |
tree | dd6e17c8e008cefa7e93ecbd5e5ad20449042413 /src/examples | |
parent | 2802a3c153ea85089ade9ffab576669d918cc4a5 (diff) | |
download | poi-fb2dbf1e7355bf37a9ab71cfca57d5c1430484af.tar.gz poi-fb2dbf1e7355bf37a9ab71cfca57d5c1430484af.zip |
SonarQube fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777669 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java b/src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java index bf4018f3d6..b9e1f2d37b 100644 --- a/src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java +++ b/src/examples/src/org/apache/poi/ss/examples/formula/SettingExternalFunction.java @@ -19,6 +19,12 @@ package org.apache.poi.ss.examples.formula;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+
import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.ErrorEval;
import org.apache.poi.ss.formula.eval.ValueEval;
@@ -29,19 +35,11 @@ import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Locale;
-import java.util.Map;
-
/**
* Demonstrates how to use functions provided by third-party add-ins, e.g. Bloomberg Excel Add-in.
*
* There can be situations when you are not interested in formula evaluation,
* you just need to set the formula and the workbook will be evaluation by the client.
- *
- * @author Yegor Kozlov
*/
public class SettingExternalFunction {
@@ -90,7 +88,8 @@ public class SettingExternalFunction { FileOutputStream out = new FileOutputStream("bloomberg-demo.xlsx");
wb.write(out);
out.close();
-
+
+ wb.close();
}
}
|