Author: kkolinko
Date: Wed Dec 3 02:01:47 2014
New Revision: 1643041
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
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java?rev=1643041&r1=1643040&r2=1643041&view=diff
==============================================================================
---
tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java
(original)
+++
tomcat/trunk/test/org/apache/tomcat/websocket/pojo/TestEncodingDecoding.java
Wed Dec 3 02:01:47 2014
@@ -49,6 +49,7 @@ import javax.websocket.server.ServerEndp
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 @@ public class TestEncodingDecoding extend
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 @@ public class TestEncodingDecoding extend
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: [email protected]
For additional commands, e-mail: [email protected]