aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/streaming
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-02-15 00:18:34 +0000
committerDominik Stadler <centic@apache.org>2014-02-15 00:18:34 +0000
commitb07bb06837943e9d07c3baeada49f1773fd166dc (patch)
treeabc0d567954ceee14cb40c4a874923ba651fcd62 /src/ooxml/java/org/apache/poi/xssf/streaming
parentd58466c8b35926f4c434e363bf63777ea26a572d (diff)
downloadpoi-b07bb06837943e9d07c3baeada49f1773fd166dc.tar.gz
poi-b07bb06837943e9d07c3baeada49f1773fd166dc.zip
Add assertions, remove Sonar warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/streaming')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/streaming/GZIPSheetDataWriter.java5
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/GZIPSheetDataWriter.java b/src/ooxml/java/org/apache/poi/xssf/streaming/GZIPSheetDataWriter.java
index 8b72ad48d9..4008940c80 100644
--- a/src/ooxml/java/org/apache/poi/xssf/streaming/GZIPSheetDataWriter.java
+++ b/src/ooxml/java/org/apache/poi/xssf/streaming/GZIPSheetDataWriter.java
@@ -51,9 +51,8 @@ public class GZIPSheetDataWriter extends SheetDataWriter {
* @return temp file to write sheet data
*/
@Override
- public File createTempFile()throws IOException {
- File fd = File.createTempFile("poi-sxssf-sheet-xml", ".gz");
- return fd;
+ public File createTempFile()throws IOException {
+ return File.createTempFile("poi-sxssf-sheet-xml", ".gz");
}
/**
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
index b7cecfe81b..43f7e72e68 100644
--- a/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
+++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
@@ -75,8 +75,7 @@ public class SheetDataWriter {
* @return temp file to write sheet data
*/
public File createTempFile()throws IOException {
- File fd = File.createTempFile("poi-sxssf-sheet", ".xml");
- return fd;
+ return File.createTempFile("poi-sxssf-sheet", ".xml");
}
/**