Author: markt
Date: Fri Mar 21 22:20:28 2014
New Revision: 1580073
URL: http://svn.apache.org/r1580073
Log:
Remove more unused code.
Reduce visibility of static fields
Modified:
tomcat/trunk/webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java
Modified:
tomcat/trunk/webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java?rev=1580073&r1=1580072&r2=1580073&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java
(original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java
Fri Mar 21 22:20:28 2014
@@ -37,14 +37,10 @@ public class AsyncStockServlet extends H
private static final long serialVersionUID = 1L;
- public static final String POLL = "POLL";
- public static final String LONG_POLL = "LONG-POLL";
- public static final String STREAM = "STREAM";
-
- static final ConcurrentLinkedQueue<AsyncContext> clients =
+ private static final ConcurrentLinkedQueue<AsyncContext> clients =
new ConcurrentLinkedQueue<>();
- static final AtomicInteger clientcount = new AtomicInteger(0);
- static final Stockticker ticker = new Stockticker();
+ private static final AtomicInteger clientcount = new AtomicInteger(0);
+ private static final Stockticker ticker = new Stockticker();
public AsyncStockServlet() {
System.out.println("AsyncStockServlet created");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]