tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1354375 - in /tomcat/trunk/java/org/apache/catalina/websocket: WebSocketServlet.java WsFrame.java WsInputStream.java
Date Wed, 27 Jun 2012 08:51:58 GMT
Author: markt
Date: Wed Jun 27 08:51:57 2012
New Revision: 1354375

URL: http://svn.apache.org/viewvc?rev=1354375&view=rev
Log:
Add some finals

Modified:
    tomcat/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java
    tomcat/trunk/java/org/apache/catalina/websocket/WsFrame.java
    tomcat/trunk/java/org/apache/catalina/websocket/WsInputStream.java

Modified: tomcat/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java?rev=1354375&r1=1354374&r2=1354375&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java (original)
+++ tomcat/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java Wed Jun 27 08:51:57
2012
@@ -52,7 +52,7 @@ public abstract class WebSocketServlet e
     private static final StringManager sm =
             StringManager.getManager(Constants.Package);
 
-    private Queue<MessageDigest> sha1Helpers =
+    private final Queue<MessageDigest> sha1Helpers =
             new ConcurrentLinkedQueue<MessageDigest>();
 
 

Modified: tomcat/trunk/java/org/apache/catalina/websocket/WsFrame.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/websocket/WsFrame.java?rev=1354375&r1=1354374&r2=1354375&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/websocket/WsFrame.java (original)
+++ tomcat/trunk/java/org/apache/catalina/websocket/WsFrame.java Wed Jun 27 08:51:57 2012
@@ -39,9 +39,9 @@ public class WsFrame {
     private final boolean fin;
     private final int rsv;
     private final byte opCode;
-    private byte[] mask = new byte[4];
+    private final byte[] mask = new byte[4];
     private long payloadLength;
-    private ByteBuffer payload;
+    private final ByteBuffer payload;
 
     /**
      * Create the new WebSocket frame, reading data from the processor as

Modified: tomcat/trunk/java/org/apache/catalina/websocket/WsInputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/websocket/WsInputStream.java?rev=1354375&r1=1354374&r2=1354375&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/websocket/WsInputStream.java (original)
+++ tomcat/trunk/java/org/apache/catalina/websocket/WsInputStream.java Wed Jun 27 08:51:57
2012
@@ -34,8 +34,8 @@ public class WsInputStream extends Input
             StringManager.getManager(Constants.Package);
 
 
-    private UpgradeProcessor<?> processor;
-    private WsOutbound outbound;
+    private final UpgradeProcessor<?> processor;
+    private final WsOutbound outbound;
 
     private WsFrame frame;
     private long remaining;



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


Mime
View raw message