[hornetq-commits] JBoss hornetq SVN: r9912 - branches/Branch_Large_Message_Compression/src/main/org/hornetq/utils.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 18 08:13:14 EST 2010


Author: gaohoward
Date: 2010-11-18 08:13:13 -0500 (Thu, 18 Nov 2010)
New Revision: 9912

Modified:
   branches/Branch_Large_Message_Compression/src/main/org/hornetq/utils/GZipUtil.java
Log:
clean up unused buffer


Modified: branches/Branch_Large_Message_Compression/src/main/org/hornetq/utils/GZipUtil.java
===================================================================
--- branches/Branch_Large_Message_Compression/src/main/org/hornetq/utils/GZipUtil.java	2010-11-18 10:50:39 UTC (rev 9911)
+++ branches/Branch_Large_Message_Compression/src/main/org/hornetq/utils/GZipUtil.java	2010-11-18 13:13:13 UTC (rev 9912)
@@ -29,12 +29,11 @@
  * A GZipUtil
  *
  * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ * @author <a href="mailto:hgao at redhat.com">Howard Gao</a>
  *
- *
  */
 public class GZipUtil
 {
-
    public static InputStream createZipInputStream(InputStream input) throws HornetQException
    {
       try
@@ -229,6 +228,7 @@
          if (index > readIndex)
          {
             result = writeBuffer.get(readIndex);
+            writeBuffer.set(readIndex, null);
             readIndex++;
          }
          else if (index == readIndex)



More information about the hornetq-commits mailing list