[jboss-cvs] JBossAS SVN: r104446 - trunk/cluster/src/main/java/org/jboss/ha/framework/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 4 12:47:23 EDT 2010
Author: bstansberry at jboss.com
Date: 2010-05-04 12:47:22 -0400 (Tue, 04 May 2010)
New Revision: 104446
Modified:
trunk/cluster/src/main/java/org/jboss/ha/framework/test/ServiceUnavailableClientInterceptor.java
Log:
Generics cleanup
Modified: trunk/cluster/src/main/java/org/jboss/ha/framework/test/ServiceUnavailableClientInterceptor.java
===================================================================
--- trunk/cluster/src/main/java/org/jboss/ha/framework/test/ServiceUnavailableClientInterceptor.java 2010-05-04 16:40:33 UTC (rev 104445)
+++ trunk/cluster/src/main/java/org/jboss/ha/framework/test/ServiceUnavailableClientInterceptor.java 2010-05-04 16:47:22 UTC (rev 104446)
@@ -22,8 +22,6 @@
package org.jboss.ha.framework.test;
import java.lang.reflect.Method;
-import java.util.Iterator;
-import java.util.List;
import org.jboss.ha.framework.interfaces.ClusteringTargetsRepository;
import org.jboss.ha.framework.interfaces.FamilyClusterInfo;
@@ -87,9 +85,8 @@
// Clear the targets to simulate exhausting them all
FamilyClusterInfo info = ClusteringTargetsRepository.getFamilyClusterInfo(proxyFamilyName);
- List targets = info.getTargets();
- for (Iterator it = targets.iterator(); it.hasNext(); )
- info.removeDeadTarget(it.next());
+ for (Object target: info.getTargets())
+ info.removeDeadTarget(target);
throw new ServiceUnavailableException("Service unavailable",
new Exception("Test"));
More information about the jboss-cvs-commits
mailing list