You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jo...@apache.org on 2001/07/03 02:12:56 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/services/schedule JobEntry.java

jon         01/07/02 17:12:55

  Modified:    src/java/org/apache/turbine/services/schedule JobEntry.java
  Log:
  I found that problme too. I changed one line in JobEntry.java, and maybe
  everything is working.
  
  Change compareTo to equals() in the equals() method in JobEntry.java
  Yong Jiao <YJ...@therealm.com>
  
  Revision  Changes    Path
  1.16      +2 -2      jakarta-turbine/src/java/org/apache/turbine/services/schedule/JobEntry.java
  
  Index: JobEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/schedule/JobEntry.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- JobEntry.java	2001/06/25 05:02:10	1.15
  +++ JobEntry.java	2001/07/03 00:12:52	1.16
  @@ -66,7 +66,7 @@
    * Unix scheduler cron.
    *
    * @author <a href="mailto:mbryson@mont.mindspring.com">Dave Bryson</a>
  - * @version $Id: JobEntry.java,v 1.15 2001/06/25 05:02:10 jvanzyl Exp $
  + * @version $Id: JobEntry.java,v 1.16 2001/07/03 00:12:52 jon Exp $
    */
   public class JobEntry extends BaseObject
       implements Comparable
  @@ -578,7 +578,7 @@
           if ( !( je instanceof JobEntry ) )
               return false;
   
  -        return ( ((JobEntry)je).getPrimaryKey().compareTo(this.getPrimaryKey()) > 0 );
  +        return ( ((JobEntry)je).getPrimaryKey().equals(this.getPrimaryKey()) > 0 );
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org