From bf6a27d0d2952f27805c529377e5fd3040783747 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 22 Jun 2009 11:58:07 +0000 Subject: [PATCH] Fix a couple of Eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@787211 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/catalina/startup/TestTomcat.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); -- 2.11.0