Author: manik.surtani(a)jboss.com
Date: 2008-08-02 11:33:04 -0400 (Sat, 02 Aug 2008)
New Revision: 6483
Modified:
core/trunk/src/main/java/org/jboss/cache/util/ExposedByteArrayOutputStream.java
Log:
Removed unnecessary synchronized blocks
Modified: core/trunk/src/main/java/org/jboss/cache/util/ExposedByteArrayOutputStream.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/util/ExposedByteArrayOutputStream.java 2008-08-01
15:28:13 UTC (rev 6482)
+++
core/trunk/src/main/java/org/jboss/cache/util/ExposedByteArrayOutputStream.java 2008-08-02
15:33:04 UTC (rev 6483)
@@ -76,7 +76,7 @@
}
@Override
- public synchronized void write(byte[] b, int off, int len)
+ public void write(byte[] b, int off, int len)
{
if ((off < 0) || (off > b.length) || (len < 0) ||
((off + len) > b.length) || ((off + len) < 0))
@@ -101,7 +101,7 @@
}
@Override
- public synchronized void write(int b)
+ public void write(int b)
{
int newcount = count + 1;
if (newcount > buf.length)
@@ -137,5 +137,4 @@
else
return Math.max(curSize + (curSize >> 2), minNewSize);
}
-
}
Show replies by date