[Jboss-cvs] JBossAS SVN: r56228 - in trunk/cluster/src/main/org/jboss: ha/framework/interfaces invocation/http/interfaces invocation/jrmp/interfaces invocation/unified/interfaces

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 24 16:49:11 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-08-24 16:49:10 -0400 (Thu, 24 Aug 2006)
New Revision: 56228

Modified:
   trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
   trunk/cluster/src/main/org/jboss/invocation/http/interfaces/HttpInvokerProxyHA.java
   trunk/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java
   trunk/cluster/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerHAProxy.java
Log:
[JBAS-3427] Avoid CCEs by using List not ArrayList

Modified: trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java	2006-08-24 20:48:30 UTC (rev 56227)
+++ trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java	2006-08-24 20:49:10 UTC (rev 56228)
@@ -92,12 +92,12 @@
 
    public HARMIClient() {}
 
-   public HARMIClient(ArrayList targets, LoadBalancePolicy policy, String key)
+   public HARMIClient(List targets, LoadBalancePolicy policy, String key)
    {
       this(targets, 0, policy, key, null);
    }
 
-   public HARMIClient(ArrayList targets,
+   public HARMIClient(List targets,
                        long initViewId,
                        LoadBalancePolicy policy,
                        String key,
@@ -303,7 +303,7 @@
          {
             try
             {
-               targets = (ArrayList)server.getReplicants();
+               targets = (List)server.getReplicants();
                local = server.getLocal();
             }
             catch (Exception ignored)

Modified: trunk/cluster/src/main/org/jboss/invocation/http/interfaces/HttpInvokerProxyHA.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/http/interfaces/HttpInvokerProxyHA.java	2006-08-24 20:48:30 UTC (rev 56227)
+++ trunk/cluster/src/main/org/jboss/invocation/http/interfaces/HttpInvokerProxyHA.java	2006-08-24 20:49:10 UTC (rev 56228)
@@ -86,7 +86,7 @@
     *    which this proxy is to be stored
     * @param proxyFamilyName  the name into the 
    */
-   public HttpInvokerProxyHA(ArrayList targets, long viewId, LoadBalancePolicy policy,
+   public HttpInvokerProxyHA(List targets, long viewId, LoadBalancePolicy policy,
       String proxyFamilyName)
    {
       this.familyClusterInfo = ClusteringTargetsRepository.initTarget (proxyFamilyName, targets, viewId);
@@ -267,7 +267,7 @@
    public void readExternal(final ObjectInput in)
       throws IOException, ClassNotFoundException
    {
-      ArrayList targets = (ArrayList) in.readObject();
+      List targets = (List) in.readObject();
       long vid = in.readLong ();
       this.loadBalancePolicy = (LoadBalancePolicy) in.readObject();
       this.proxyFamilyName = (String)in.readObject();

Modified: trunk/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java	2006-08-24 20:48:30 UTC (rev 56227)
+++ trunk/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java	2006-08-24 20:49:10 UTC (rev 56228)
@@ -79,7 +79,7 @@
 
    public JRMPInvokerProxyHA() {}
 
-   public JRMPInvokerProxyHA(ArrayList targets, LoadBalancePolicy policy,
+   public JRMPInvokerProxyHA(List targets, LoadBalancePolicy policy,
                              String proxyFamilyName, long viewId)
    {
       this.familyClusterInfo = ClusteringTargetsRepository.initTarget (proxyFamilyName, targets, viewId);
@@ -355,7 +355,7 @@
    public void readExternal(final ObjectInput in)
    throws IOException, ClassNotFoundException
    {
-      ArrayList targets = (ArrayList)in.readObject();
+      List targets = (List)in.readObject();
       this.loadBalancePolicy = (LoadBalancePolicy)in.readObject();
       this.proxyFamilyName = (String)in.readObject();
       long vid = in.readLong ();

Modified: trunk/cluster/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerHAProxy.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerHAProxy.java	2006-08-24 20:48:30 UTC (rev 56227)
+++ trunk/cluster/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerHAProxy.java	2006-08-24 20:49:10 UTC (rev 56228)
@@ -68,7 +68,7 @@
    }
 
    public UnifiedInvokerHAProxy(InvokerLocator locator, boolean isStrictRMIException,
-                                ArrayList targets, LoadBalancePolicy policy,
+                                List targets, LoadBalancePolicy policy,
                                 String proxyFamilyName, long viewId)
    {
       super(locator, isStrictRMIException);
@@ -425,7 +425,7 @@
             setStrictRMIException(in.readBoolean());
             init(getLocator());
 
-            ArrayList targets = (ArrayList) in.readObject();
+            List targets = (List) in.readObject();
             this.loadBalancePolicy = (LoadBalancePolicy) in.readObject();
             this.proxyFamilyName = (String) in.readObject();
             long vid = in.readLong();




More information about the jboss-cvs-commits mailing list