diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-05 21:51:36 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-05 21:51:36 -0500 |
commit | 1e736e03ab9e4d5a276e3fddf8abe587b82bb862 (patch) | |
tree | c9906ada26f02a9c4a551860651866b69648f548 /src/com | |
parent | fdcfd3a69e1e1a77d83f00a4c549704e725743f0 (diff) | |
download | fourpuzzle-1e736e03ab9e4d5a276e3fddf8abe587b82bb862.tar.gz fourpuzzle-1e736e03ab9e4d5a276e3fddf8abe587b82bb862.tar.bz2 fourpuzzle-1e736e03ab9e4d5a276e3fddf8abe587b82bb862.zip |
Fixed SaveFile I/O closing forgetness
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/fourisland/fourpuzzle/SaveFile.java | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
45 | SaveFile temp = null; | 45 | SaveFile temp = null; |
46 | try { | 46 | try { |
47 | temp = (SaveFile) ois.readObject(); | 47 | temp = (SaveFile) ois.readObject(); |
48 | } catch (IOException ex) { | ||
49 | Logger.getLogger(SaveFile.class.getName()).log(Level.SEVERE, null, ex); | ||
50 | } catch (ClassNotFoundException ex) { | 48 | } catch (ClassNotFoundException ex) { |
51 | Logger.getLogger(SaveFile.class.getName()).log(Level.SEVERE, null, ex); | 49 | Logger.getLogger(SaveFile.class.getName()).log(Level.SEVERE, null, ex); |
52 | } | 50 | } |
@@ -66,6 +64,7 @@ public class SaveFile implements Serializable { | |||
66 | ObjectOutputStream oos = new ObjectOutputStream(os); | 64 | ObjectOutputStream oos = new ObjectOutputStream(os); |
67 | oos.writeObject(this); | 65 | oos.writeObject(this); |
68 | oos.close(); | 66 | oos.close(); |
67 | os.close(); | ||
69 | } | 68 | } |
70 | 69 | ||
71 | private HashMap<String, Boolean> switches; | 70 | private HashMap<String, Boolean> switches; |