Fix Eclipse niggles in the examples
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 24 Oct 2009 20:54:19 +0000 (20:54 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 24 Oct 2009 20:54:19 +0000 (20:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@829449 13f79535-47bb-0310-9956-ffa450edef68

webapps/examples/WEB-INF/classes/async/AsyncStockServlet.java
webapps/examples/WEB-INF/classes/async/Stockticker.java

index fdbe748..fbec89e 100644 (file)
@@ -61,7 +61,7 @@ public class AsyncStockServlet extends HttpServlet implements TickListener, Asyn
             actx.addListener(this);
             resp.setContentType("text/plain");
             clients.add(actx);
-            if (this.clientcount.incrementAndGet()==1) {
+            if (clientcount.incrementAndGet()==1) {
                 ticker.addTickListener(this);
             }
         } else {
index a0e5563..9b9d046 100644 (file)
@@ -40,7 +40,7 @@ public class Stockticker implements Runnable {
             try {
                 ticker.join();
             }catch (InterruptedException x) {
-                ticker.interrupted();
+                Thread.interrupted();
             }
             
             ticker = null;