From: markt Date: Mon, 23 Feb 2009 14:56:19 +0000 (+0000) Subject: Fix various Eclipse warnings. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=965d4e79508c7772dd862c7f3197fb528bc9a99f;p=tomcat7.0 Fix various Eclipse warnings. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@747040 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/startup/ContextConfig.java b/java/org/apache/catalina/startup/ContextConfig.java index 1fe43c688..d2d1e7819 100644 --- a/java/org/apache/catalina/startup/ContextConfig.java +++ b/java/org/apache/catalina/startup/ContextConfig.java @@ -345,7 +345,7 @@ public class ContextConfig synchronized (webDigester) { try { if (altDDName != null) { - url = new File(altDDName).toURL(); + url = new File(altDDName).toURI().toURL(); } else { url = servletContext.getResource( Constants.ApplicationWebXml); @@ -384,9 +384,7 @@ public class ContextConfig webDigester.reset(); parseException = null; try { - if (stream != null) { - stream.close(); - } + stream.close(); } catch (IOException e) { log.error(sm.getString("contextConfig.applicationClose"), e); } @@ -923,8 +921,7 @@ public class ContextConfig } - protected void antiLocking() - throws IOException { + protected void antiLocking() { if ((context instanceof StandardContext) && ((StandardContext) context).getAntiResourceLocking()) { @@ -1023,12 +1020,8 @@ public class ContextConfig */ protected synchronized void beforeStart() { - try { - antiLocking(); - } catch (IOException e) { - log.error(sm.getString("contextConfig.antiLocking"), e); - } - + antiLocking(); + } @@ -1335,9 +1328,8 @@ public class ContextConfig new File(System.getProperty("catalina.base"), "conf"); if (!configBase.exists()) { return null; - } else { - return configBase; } + return configBase; }