From: markt Date: Mon, 22 Jun 2009 11:58:07 +0000 (+0000) Subject: Fix a couple of Eclipse warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bf6a27d0d2952f27805c529377e5fd3040783747;p=tomcat7.0 Fix a couple of Eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@787211 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TestTomcat.java b/test/org/apache/catalina/startup/TestTomcat.java index be3295dad..667fa2156 100644 --- a/test/org/apache/catalina/startup/TestTomcat.java +++ b/test/org/apache/catalina/startup/TestTomcat.java @@ -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();