From 3c4fe0e3b7405d66febab4fa936b6398057fbdc7 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 25 Nov 2009 15:43:45 +0000 Subject: [PATCH] closing fileoutputstream --- tools/cooja/java/se/sics/cooja/util/ArrayUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/util/ArrayUtils.java b/tools/cooja/java/se/sics/cooja/util/ArrayUtils.java index a54d93fd1..9f5d407cd 100644 --- a/tools/cooja/java/se/sics/cooja/util/ArrayUtils.java +++ b/tools/cooja/java/se/sics/cooja/util/ArrayUtils.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ArrayUtils.java,v 1.3 2009/10/29 16:48:50 fros4943 Exp $ + * $Id: ArrayUtils.java,v 1.4 2009/11/25 15:43:45 fros4943 Exp $ */ package se.sics.cooja.util; @@ -104,6 +104,8 @@ public class ArrayUtils { try { FileOutputStream writer = new FileOutputStream(dest); writer.write(data); + writer.flush(); + writer.close(); return true; } catch (IOException e) { return false;