[jboss-cvs] JBossAS SVN: r96570 - in projects/kernel/trunk/jmx-aop-mc-int/src: test/java/org/jboss/test/system/controller/integration/support and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 19 09:24:08 EST 2009


Author: adrian at jboss.org
Date: 2009-11-19 09:24:07 -0500 (Thu, 19 Nov 2009)
New Revision: 96570

Modified:
   projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java
   projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java
   projects/kernel/trunk/jmx-aop-mc-int/src/test/java/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java
Log:
Source code tidyup

Modified: projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java
===================================================================
--- projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java	2009-11-19 14:23:16 UTC (rev 96569)
+++ projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java	2009-11-19 14:24:07 UTC (rev 96570)
@@ -98,7 +98,7 @@
          registerDirectly = jmx.registerDirectly();
       }
       // NOTE: The cast to Class is necessary for compilation under JDK6
-      @SuppressWarnings({"unchecked", "cast"})
+      @SuppressWarnings({"unchecked"})
       Object mbean = (registerDirectly ? context.getTarget() 
                                        : new StandardMBean(context.getTarget(), (Class) intfClass));
       MBeanServer server = serviceController.getMBeanServer();

Modified: projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java
===================================================================
--- projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java	2009-11-19 14:23:16 UTC (rev 96569)
+++ projects/kernel/trunk/jmx-aop-mc-int/src/main/java/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java	2009-11-19 14:24:07 UTC (rev 96570)
@@ -79,7 +79,7 @@
          registerDirectly = jmx.registerDirectly();
       }
       // NOTE: The cast to Class is necessary for compilation under JDK6
-      @SuppressWarnings({"unchecked", "cast"})
+      @SuppressWarnings({"unchecked"})
       Object mbean = (registerDirectly ? context.getTarget() 
                                        : new StandardMBean(context.getTarget(), (Class) intfClass));
       MBeanServer server = getServiceController().getMBeanServer();

Modified: projects/kernel/trunk/jmx-aop-mc-int/src/test/java/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java
===================================================================
--- projects/kernel/trunk/jmx-aop-mc-int/src/test/java/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java	2009-11-19 14:23:16 UTC (rev 96569)
+++ projects/kernel/trunk/jmx-aop-mc-int/src/test/java/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java	2009-11-19 14:24:07 UTC (rev 96570)
@@ -81,7 +81,7 @@
          registerDirectly = jmx.registerDirectly();
       }
       // NOTE: The cast to Class is necessary for compilation under JDK6
-      @SuppressWarnings({"unchecked", "cast"})
+      @SuppressWarnings({"unchecked"})
       Object mbean = (registerDirectly ? context.getTarget() : new StandardMBean(context.getTarget(), (Class) intfClass));
       mbeanServer.registerMBean(mbean, objectName);
       try




More information about the jboss-cvs-commits mailing list