[jboss-cvs] JBossCache/src/org/jboss/cache/marshall ...

Manik Surtani msurtani at jboss.com
Mon Nov 13 09:20:32 EST 2006


  User: msurtani
  Date: 06/11/13 09:20:32

  Modified:    src/org/jboss/cache/marshall  MethodDeclarations.java
  Log:
  Fixed test suite failures
  
  Revision  Changes    Path
  1.22      +16 -4     JBossCache/src/org/jboss/cache/marshall/MethodDeclarations.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MethodDeclarations.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/marshall/MethodDeclarations.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- MethodDeclarations.java	11 Nov 2006 19:55:19 -0000	1.21
  +++ MethodDeclarations.java	13 Nov 2006 14:20:32 -0000	1.22
  @@ -30,7 +30,7 @@
    * allowing lookup operations both ways.
    *
    * @author <a href="galder.zamarreno at jboss.com">Galder Zamarreno</a>
  - * @version $Revision: 1.21 $
  + * @version $Revision: 1.22 $
    */
   public class MethodDeclarations
   {
  @@ -132,7 +132,7 @@
   
      public static final int putKeyValMethodLocal_id = 3;
   
  -//    public static final int putFailFastKeyValueMethodLocal_id = 4;  // this method is no longer needed.
  +   //    public static final int putFailFastKeyValueMethodLocal_id = 4;  // this method is no longer needed.
   
      public static final int removeNodeMethodLocal_id = 5;
   
  @@ -437,7 +437,10 @@
                  throw new RuntimeException("Unrecognised method id " + methodId);
            }
         }
  -      else throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
  +      else
  +      {
  +         throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
  +      }
      }
   
      /**
  @@ -465,7 +468,16 @@
                  throw new RuntimeException("Unrecognised method id " + methodId);
            }
         }
  -      else throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
  +      else
  +      {
  +         throw new RuntimeException("Attempting to look up a versioned equivalent of a non-crud method");
  +      }
  +   }
  +
  +
  +   public static boolean isDataGravitationMethod(int methodId)
  +   {
  +      return methodId == MethodDeclarations.dataGravitationCleanupMethod_id || methodId == MethodDeclarations.dataGravitationMethod_id;
      }
   }
   
  
  
  



More information about the jboss-cvs-commits mailing list