[jboss-cvs] JBossAS SVN: r107064 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 23 13:41:44 EDT 2010


Author: pferraro
Date: 2010-07-23 13:41:44 -0400 (Fri, 23 Jul 2010)
New Revision: 107064

Modified:
   projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HAServiceImpl.java
   projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HASingletonImpl.java
Log:
Fix compiler warnings regarding use of deprecated methods.

Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HAServiceImpl.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HAServiceImpl.java	2010-07-23 17:41:11 UTC (rev 107063)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HAServiceImpl.java	2010-07-23 17:41:44 UTC (rev 107064)
@@ -28,6 +28,7 @@
 
 import org.jboss.ha.framework.interfaces.DistributedReplicantManager;
 import org.jboss.ha.framework.interfaces.EventListener;
+import org.jboss.ha.framework.interfaces.GroupRpcDispatcher;
 import org.jboss.ha.framework.interfaces.HAPartition;
 import org.jboss.ha.framework.interfaces.HAService;
 import org.jboss.logging.Logger;
@@ -207,7 +208,8 @@
    @SuppressWarnings("unchecked")
    protected <T> List<T> callMethodOnPartition(String methodName, Object[] args, Class<?>[] types) throws Exception
    {
-       return (List<T>) this.partition.callMethodOnCluster(this.name, methodName, args, types, true);
+      GroupRpcDispatcher dispatcher = this.partition;
+      return (List<T>) dispatcher.callMethodOnCluster(this.name, methodName, args, types, true);
    }
 
    protected void callAsyncMethodOnPartition(String methodName, Object[] args, Class<?>[] types) throws Exception
@@ -279,8 +281,7 @@
    /**
     * @see org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener#replicantsChanged(java.lang.String, java.util.List, int, boolean)
     */
-   @SuppressWarnings("unchecked")
-   public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
+   public void replicantsChanged(String key, List<?> newReplicants, int newReplicantsViewId, boolean merge)
    {
       if (key.equals(this.getHAServiceKey()))
       {

Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HASingletonImpl.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HASingletonImpl.java	2010-07-23 17:41:11 UTC (rev 107063)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HASingletonImpl.java	2010-07-23 17:41:44 UTC (rev 107064)
@@ -363,8 +363,7 @@
    
    class RecordingReplicantListener implements DistributedReplicantManager.ReplicantListener
    {
-      @SuppressWarnings("unchecked")
-      public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
+      public void replicantsChanged(String key, List<?> newReplicants, int newReplicantsViewId, boolean merge)
       {
          if (HASingletonImpl.this.getHAServiceKey().equals(key))
          {



More information about the jboss-cvs-commits mailing list