Author: markt
Date: Mon May 12 15:11:49 2014
New Revision: 1593994

URL: http://svn.apache.org/r1593994
Log:
Fix double checked locking issue identified by FindBugs

Modified:
    tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java

Modified: 
tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java?rev=1593994&r1=1593993&r2=1593994&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java Mon 
May 12 15:11:49 2014
@@ -105,7 +105,7 @@ public class WsWebSocketContainer
     private static final Random random = new Random();
     private static final byte[] crlf = new byte[] {13, 10};
 
-    private AsynchronousChannelGroup asynchronousChannelGroup = null;
+    private volatile AsynchronousChannelGroup asynchronousChannelGroup = null;
     private final Object asynchronousChannelGroupLock = new Object();
 
     private final Log log = LogFactory.getLog(WsWebSocketContainer.class);



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

Reply via email to