From 1e736e03ab9e4d5a276e3fddf8abe587b82bb862 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 5 Feb 2009 21:51:36 -0500 Subject: Fixed SaveFile I/O closing forgetness --- src/com/fourisland/fourpuzzle/SaveFile.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/com') diff --git a/src/com/fourisland/fourpuzzle/SaveFile.java b/src/com/fourisland/fourpuzzle/SaveFile.java index 6e3e441..2b99bc5 100644 --- a/src/com/fourisland/fourpuzzle/SaveFile.java +++ b/src/com/fourisland/fourpuzzle/SaveFile.java @@ -45,8 +45,6 @@ public class SaveFile implements Serializable { SaveFile temp = null; try { temp = (SaveFile) ois.readObject(); - } catch (IOException ex) { - Logger.getLogger(SaveFile.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(SaveFile.class.getName()).log(Level.SEVERE, null, ex); } @@ -66,6 +64,7 @@ public class SaveFile implements Serializable { ObjectOutputStream oos = new ObjectOutputStream(os); oos.writeObject(this); oos.close(); + os.close(); } private HashMap switches; -- cgit 1.4.1