From: markt Date: Fri, 7 Aug 2009 12:24:54 +0000 (+0000) Subject: Fix some Eclipse warnings. Could remove the unused parameters but that would break... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=02d22ced27c51088d32a4ea5496fe4bd58c40295;p=tomcat7.0 Fix some Eclipse warnings. Could remove the unused parameters but that would break the pattern of method signatures git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801967 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/mbeans/MBeanUtils.java b/java/org/apache/catalina/mbeans/MBeanUtils.java index e79abce1c..cbc03cdaf 100644 --- a/java/org/apache/catalina/mbeans/MBeanUtils.java +++ b/java/org/apache/catalina/mbeans/MBeanUtils.java @@ -54,8 +54,6 @@ import org.apache.coyote.ajp.AjpProtocol; import org.apache.coyote.http11.Http11AprProtocol; import org.apache.coyote.http11.Http11NioProtocol; import org.apache.coyote.http11.Http11Protocol; -import org.apache.juli.logging.Log; -import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.IntrospectionUtils; import org.apache.tomcat.util.modeler.ManagedBean; import org.apache.tomcat.util.modeler.Registry; @@ -70,11 +68,9 @@ import org.apache.tomcat.util.modeler.Registry; */ public class MBeanUtils { - private static Log log = LogFactory.getLog(MBeanUtils.class); // ------------------------------------------------------- Static Variables - /** * The set of exceptions to the normal rules used by * createManagedBean(). The first element of each pair @@ -633,7 +629,7 @@ public class MBeanUtils { * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, - Engine engine) + @SuppressWarnings("unused") Engine engine) throws MalformedObjectNameException { ObjectName name = null; @@ -801,7 +797,7 @@ public class MBeanUtils { * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, - MBeanFactory factory) + @SuppressWarnings("unused") MBeanFactory factory) throws MalformedObjectNameException { ObjectName name = new ObjectName(domain + ":type=MBeanFactory"); @@ -879,7 +875,7 @@ public class MBeanUtils { * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, - Server server) + @SuppressWarnings("unused") Server server) throws MalformedObjectNameException { ObjectName name = null;