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@jboss.org">Clebert
Suconic</a>
+ * @author <a href="mailto:hgao@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)
Show replies by date