Fix a couple of Eclipse warnings
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Jun 2009 11:58:07 +0000 (11:58 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Jun 2009 11:58:07 +0000 (11:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@787211 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/startup/TestTomcat.java

index be3295d..667fa21 100644 (file)
@@ -88,8 +88,7 @@ public class TestTomcat extends TestCase {
         // You can customize the context by calling 
         // its API
         
-        tomcat.addServlet(ctx, "myServlet", 
-                new HelloWorld());
+        Tomcat.addServlet(ctx, "myServlet", new HelloWorld());
         ctx.addServletMapping("/", "myServlet");
         
         tomcat.start();
@@ -103,9 +102,7 @@ public class TestTomcat extends TestCase {
         File appDir = 
             new File(base + "output/build/webapps/examples");
         // app dir is relative to server home
-        StandardContext ctx = 
-            tomcat.addWebapp(null, "/examples", 
-                    appDir.getAbsolutePath());
+        tomcat.addWebapp(null, "/examples", appDir.getAbsolutePath());
         
         tomcat.start();