You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2011/11/07 03:29:19 UTC
svn commit: r1198604 -
/tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java
Author: kkolinko
Date: Mon Nov 7 02:29:19 2011
New Revision: 1198604
URL: http://svn.apache.org/viewvc?rev=1198604&view=rev
Log:
Remove synchronization from write(byte[]), because it is not needed there,
as write(byte[],int,int) that it delegates to is synchronized.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java?rev=1198604&r1=1198603&r2=1198604&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/filters/FlushableGZIPOutputStream.java Mon Nov 7 02:29:19 2011
@@ -43,7 +43,7 @@ public class FlushableGZIPOutputStream e
private boolean hasLastByte = false;
@Override
- public synchronized void write(byte[] bytes) throws IOException {
+ public void write(byte[] bytes) throws IOException {
write(bytes, 0, bytes.length);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org