From 371f315bbae62816501c79e1bde93cef25b4852b Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 13 Sep 2013 09:47:20 -0700 Subject: Fix deserialization --- src/github/daneren2005/dsub/util/FileUtil.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/util/FileUtil.java b/src/github/daneren2005/dsub/util/FileUtil.java index 3f699524..7110669c 100644 --- a/src/github/daneren2005/dsub/util/FileUtil.java +++ b/src/github/daneren2005/dsub/util/FileUtil.java @@ -378,7 +378,6 @@ public class FileUtil { out = new Output(new FileOutputStream(file.getFD())); kryo.writeObject(out, obj); Log.i(TAG, "Serialized object to " + fileName); - file.close(); return true; } catch (Throwable x) { Log.w(TAG, "Failed to serialize object to " + fileName); @@ -395,7 +394,6 @@ public class FileUtil { in = new Input(new FileInputStream(file.getFD())); T result = (T) kryo.readObject(in, tClass); Log.i(TAG, "Deserialized object from " + fileName); - file.close(); return result; } catch (Throwable x) { Log.w(TAG, "Failed to deserialize object from " + fileName, x); -- cgit v1.2.3