From 78d19690c85e2c9b002e9e65d056dbd89e59950a Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 18 Mar 2016 23:12:28 +0000 Subject: eclipse warning fixes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735706 13f79535-47bb-0310-9956-ffa450edef68 --- src/examples/src/org/apache/poi/ss/examples/CalendarDemo.java | 2 ++ .../src/org/apache/poi/xssf/usermodel/examples/CalendarDemo.java | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/examples') 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(); } /** -- cgit v1.2.3