commit | cac919cc13b73036d70e715e0524559f82ddcfaf | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Oct 20 22:17:20 2014 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Mon Oct 20 22:44:55 2014 -0700 |
tree | 7280972352649d9dc4b88a88885b525908a354db | |
parent | 485b478c793ab5e3c89049e4b232d9576bd87d73 [diff] |
flushing just to be sure Change-Id: Iebdc4b50a94e3247c15152c6c3148620739cc864
diff --git a/utils/misc/src/main/java/org/onlab/util/KryoNamespace.java b/utils/misc/src/main/java/org/onlab/util/KryoNamespace.java index 42d801b..1bfe3bc 100644 --- a/utils/misc/src/main/java/org/onlab/util/KryoNamespace.java +++ b/utils/misc/src/main/java/org/onlab/util/KryoNamespace.java
@@ -171,6 +171,7 @@ Kryo kryo = getKryo(); try { kryo.writeClassAndObject(out, obj); + out.flush(); return out.toBytes(); } finally { putKryo(kryo); @@ -188,6 +189,7 @@ Kryo kryo = getKryo(); try { kryo.writeClassAndObject(out, obj); + out.flush(); } finally { putKryo(kryo); }