tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1228926 - in /tomcat/trunk/java/org/apache/tomcat/util/buf: C2BConverter.java MessageBytes.java
Date Sun, 08 Jan 2012 19:22:05 GMT
Author: markt
Date: Sun Jan  8 19:22:05 2012
New Revision: 1228926

URL: http://svn.apache.org/viewvc?rev=1228926&view=rev
Log:
Use final

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
    tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java?rev=1228926&r1=1228925&r2=1228926&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java Sun Jan  8 19:22:05 2012
@@ -32,7 +32,7 @@ public final class C2BConverter {
 
     private final IntermediateOutputStream ios;
     private final WriteConvertor conv;
-    private ByteChunk bb;
+    private final ByteChunk bb;
 
     /** Create a converter, with bytes going to a byte buffer
      */
@@ -166,7 +166,7 @@ public final class C2BConverter {
     not be called if recycling the converter and if data was not flushed.
 */
 final class IntermediateOutputStream extends OutputStream {
-    private ByteChunk tbuff;
+    private final ByteChunk tbuff;
     private boolean enabled=true;
 
     public IntermediateOutputStream(ByteChunk tbuff) {

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java?rev=1228926&r1=1228925&r2=1228926&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java Sun Jan  8 19:22:05 2012
@@ -518,7 +518,7 @@ public final class MessageBytes implemen
 
     // -------------------- Future may be different --------------------
 
-    private static MessageBytesFactory factory=new MessageBytesFactory();
+    private static final MessageBytesFactory factory=new MessageBytesFactory();
 
     public static class MessageBytesFactory {
         protected MessageBytesFactory() {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message