aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-09-13 09:47:20 -0700
committerScott Jackson <daneren2005@gmail.com>2013-09-13 09:47:20 -0700
commit371f315bbae62816501c79e1bde93cef25b4852b (patch)
tree470c99a932a8dd1b7c0e0b22c8eb1a08a424e496 /src/github/daneren2005
parentdae78d7eca1d624457d7be5a9cb6e7245abcd07e (diff)
downloaddsub-371f315bbae62816501c79e1bde93cef25b4852b.tar.gz
dsub-371f315bbae62816501c79e1bde93cef25b4852b.tar.bz2
dsub-371f315bbae62816501c79e1bde93cef25b4852b.zip
Fix deserialization
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/util/FileUtil.java2
1 files changed, 0 insertions, 2 deletions
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);