[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...

Christian Bauer christian at hibernate.org
Fri Jul 6 10:38:39 EDT 2007


  User: cbauer  
  Date: 07/07/06 10:38:39

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/model 
                        FeedEntry.java
  Log:
  Compiles and runs on latest Seam CVS
  
  Revision  Changes    Path
  1.8       +3 -1      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FeedEntry.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- FeedEntry.java	26 Apr 2007 18:54:26 -0000	1.7
  +++ FeedEntry.java	6 Jul 2007 14:38:39 -0000	1.8
  @@ -131,7 +131,9 @@
   
       // Sort by date
       public int compareTo(Object o) {
  -        return ((FeedEntry)o).getUpdatedDate().compareTo(getUpdatedDate());
  +        FeedEntry other = (FeedEntry)o;
  +        if (getUpdatedDate().getTime() > other.getUpdatedDate().getTime()) return -1;
  +        return (getUpdatedDate().getTime() == other.getUpdatedDate().getTime() ? 0 : 1);
       }
   
       public String toString() {
  
  
  



More information about the jboss-cvs-commits mailing list