summaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2016-03-18 23:12:28 +0000
committerAndreas Beeker <kiwiwings@apache.org>2016-03-18 23:12:28 +0000
commit78d19690c85e2c9b002e9e65d056dbd89e59950a (patch)
tree61fad57363ae80f62b81f8f05a7b5724f062daa4 /src/examples
parent86fdea9d4befbd85f55a791e43a688e02aaf67c0 (diff)
downloadpoi-78d19690c85e2c9b002e9e65d056dbd89e59950a.tar.gz
poi-78d19690c85e2c9b002e9e65d056dbd89e59950a.zip
eclipse warning fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java2
-rw-r--r--src/examples/src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java b/src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java
index bb120861f6..5512aa04fd 100644
--- a/src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java
+++ b/src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java
@@ -140,6 +140,8 @@ public class CalendarDemo {
FileOutputStream out = new FileOutputStream(file);
wb.write(out);
out.close();
+
+ wb.close();
}
/**
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java
index d8baaceda5..48e3fd122d 100644
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java
+++ b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java
@@ -127,6 +127,8 @@ public class CalendarDemo {
FileOutputStream out = new FileOutputStream("calendar-"+year+".xlsx");
wb.write(out);
out.close();
+
+ wb.close();
}
/**