tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org (Rainer Jung)
Subject [BACKUP] svn commit: r1643041 - /tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java
Date Sat, 06 Dec 2014 13:31:33 GMT
Author: kkolinko
Date: 2014-12-03 02:01:47 +0000 (Wed, 03 Dec 2014)
New Revision: r1643041

URL: http://svn.apache.org/r1643041
Log:

Fix trailing whitespace to make Checkstyle happy. Mark fields as volatile/final. Followup
to r1642962, r1642974.

Modified:
    /tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java

Index: tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java
===================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java	(revision
1643040)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java	(revision
1643041)
@@ -49,6 +49,7 @@
 
 import org.junit.Assert;
 import org.junit.Test;
+
 import org.apache.catalina.Context;
 import org.apache.catalina.servlets.DefaultServlet;
 import org.apache.catalina.startup.Tomcat;
@@ -409,8 +410,8 @@
             configurator=SingletonConfigurator.class)
     public static class MessagesServer {
 
-        private Queue<String> received = new ConcurrentLinkedQueue<>();
-        private Throwable t = null; 
+        private final Queue<String> received = new ConcurrentLinkedQueue<>();
+        private volatile Throwable t = null;
 
         @OnMessage
         public String onMessage(String message, Session session) {
@@ -431,8 +432,8 @@
             configurator=SingletonConfigurator.class)
     public static class BatchedServer {
 
-        private Queue<String> received = new ConcurrentLinkedQueue<>();
-        private Throwable t = null; 
+        private final Queue<String> received = new ConcurrentLinkedQueue<>();
+        private volatile Throwable t = null;
 
         @OnMessage
         public String onMessage(String message, Session session) throws IOException {

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


Mime
View raw message