Author: pferraro
Date: 2008-09-11 13:37:33 -0400 (Thu, 11 Sep 2008)
New Revision: 1813
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/ModClusterService.java
Log:
Code cleanup.
Modified: trunk/mod_cluster/src/main/java/org/jboss/modcluster/ModClusterService.java
===================================================================
--- trunk/mod_cluster/src/main/java/org/jboss/modcluster/ModClusterService.java 2008-09-11
17:37:04 UTC (rev 1812)
+++ trunk/mod_cluster/src/main/java/org/jboss/modcluster/ModClusterService.java 2008-09-11
17:37:33 UTC (rev 1813)
@@ -553,7 +553,7 @@
ModClusterServiceDRMEntry removed = nonresponsive.remove(cn);
if (removed != null)
{
- Integer lbf = new Integer(mcssgrr.getLoadBalanceFactor());
+ Integer lbf = Integer.valueOf(mcssgrr.getLoadBalanceFactor());
for (String jvmRoute: removed.getJvmRoutes())
{
loadBalanceFactors.put(jvmRoute, lbf);
@@ -589,7 +589,7 @@
}
// Add error-state objects for non-responsive peers
- Integer lbf = new Integer(0);
+ Integer lbf = Integer.valueOf(0);
for (Map.Entry<ClusterNode, ModClusterServiceDRMEntry> entry:
nonresponsive.entrySet())
{
ClusterNode cn = entry.getKey();
Show replies by date