[seam-commits] Seam SVN: r11403 - branches/community/Seam_2_2/src/main/org/jboss/seam/jmx.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Aug 18 13:36:33 EDT 2009


Author: norman.richards at jboss.com
Date: 2009-08-18 13:36:33 -0400 (Tue, 18 Aug 2009)
New Revision: 11403

Modified:
   branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
Log:
JBSEAM-4029

Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java	2009-08-18 17:18:28 UTC (rev 11402)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java	2009-08-18 17:36:33 UTC (rev 11403)
@@ -139,11 +139,9 @@
    
    protected MBeanServer locateJBoss()
    {
-      for (Iterator i = MBeanServerFactory.findMBeanServer(null).iterator(); i.hasNext(); )
-      {
-         MBeanServer server = (MBeanServer) i.next();
-         if (server.getDefaultDomain().equals("jboss"))
-         {
+      for (Object o: MBeanServerFactory.findMBeanServer(null)) {
+         MBeanServer server = (MBeanServer) o;
+         if ("jboss".equals(server.getDefaultDomain())) {
             return server;
          }
       }



More information about the seam-commits mailing list