[seam-commits] Seam SVN: r11484 - branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Sep 14 10:20:36 EDT 2009
Author: manaRH
Date: 2009-09-14 10:20:35 -0400 (Mon, 14 Sep 2009)
New Revision: 11484
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
Log:
JBPAPP-2787
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java 2009-09-11 19:42:44 UTC (rev 11483)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java 2009-09-14 14:20:35 UTC (rev 11484)
@@ -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