aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
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);