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

Elias Ross genman at noderunner.net
Fri Dec 8 14:03:56 EST 2006


  User: genman  
  Date: 06/12/08 14:03:56

  Modified:    src/org/jboss/cache/optimistic  FqnComparator.java
  Log:
  JBCACHE-888 Clean up node interfaces a little more
  
  Revision  Changes    Path
  1.5       +35 -37    JBossCache/src/org/jboss/cache/optimistic/FqnComparator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FqnComparator.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/optimistic/FqnComparator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- FqnComparator.java	13 Apr 2006 19:26:34 -0000	1.4
  +++ FqnComparator.java	8 Dec 2006 19:03:56 -0000	1.5
  @@ -22,7 +22,7 @@
    * @author Manik Surtani (<a href="mailto:manik at jboss.org">manik at jboss.org</a>)
    * @author Steve Woodcock (<a href="mailto:stevew at jofti.com">stevew at jofti.com</a>)
    */
  -public class FqnComparator implements Comparator, Serializable {
  +public class FqnComparator implements Comparator<Fqn>, Serializable {
   
      static final long serialVersionUID = -102183636437493134L;
   
  @@ -38,9 +38,7 @@
      * Returns -1 if the first comes before; 0 if they are the same; 1 if the
      * second Fqn comes before.  <code>null</code> always comes first.
   	 */
  -	public int compare(Object o1, Object o2) {
  -		Fqn fqn1 = (Fqn)o1;
  -		Fqn fqn2 = (Fqn)o2;
  +	public int compare(Fqn fqn1, Fqn fqn2) {
       int s1 = fqn1.size();
       int s2 = fqn2.size();
   
  
  
  



More information about the jboss-cvs-commits mailing list