Fix some Eclipse warnings. Could remove the unused parameters but that would break...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 7 Aug 2009 12:24:54 +0000 (12:24 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 7 Aug 2009 12:24:54 +0000 (12:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801967 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/mbeans/MBeanUtils.java

index e79abce..cbc03cd 100644 (file)
@@ -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
      * <code>createManagedBean()</code>.  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;