svn commit: r714087 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r714087 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java

adrianc
Author: adrianc
Date: Fri Nov 14 10:06:37 2008
New Revision: 714087

URL: http://svn.apache.org/viewvc?rev=714087&view=rev
Log:
Small fixup for one of my previous commits.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java?rev=714087&r1=714086&r2=714087&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilObject.java Fri Nov 14 10:06:37 2008
@@ -106,7 +106,9 @@
         ObjectOutputStream oos = new ObjectOutputStream(bos);
         oos.writeObject(obj);
         oos.flush();
-        return (long) bos.size();
+        long size = (long) bos.size();
+        bos.close();
+        return size;
     }
 
     /** Deserialize a byte array back to an object */