[seam-commits] Seam SVN: r11405 - branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Aug 20 07:59:30 EDT 2009


Author: manaRH
Date: 2009-08-20 07:59:29 -0400 (Thu, 20 Aug 2009)
New Revision: 11405

Modified:
   branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
Log:
backport of JBSEAM-4029

Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java	2009-08-20 07:39:30 UTC (rev 11404)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java	2009-08-20 11:59:29 UTC (rev 11405)
@@ -139,10 +139,10 @@
    
    protected MBeanServer locateJBoss()
    {
-      for (Iterator i = MBeanServerFactory.findMBeanServer(null).iterator(); i.hasNext(); )
+      for (Object o : MBeanServerFactory.findMBeanServer(null))
       {
-         MBeanServer server = (MBeanServer) i.next();
-         if (server.getDefaultDomain().equals("jboss"))
+         MBeanServer server = (MBeanServer) o;
+         if ("jboss".equals(server.getDefaultDomain()))
          {
             return server;
          }



More information about the seam-commits mailing list