db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
Date Wed, 03 Nov 2004 19:01:49 GMT
brj         2004/11/03 11:01:49

  Modified:    src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
  Log:
  make it compile with java 1.5
  
  Revision  Changes    Path
  1.51      +2 -2      db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java
  
  Index: ConcreteEditingContext.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- ConcreteEditingContext.java	21 Oct 2004 20:09:08 -0000	1.50
  +++ ConcreteEditingContext.java	3 Nov 2004 19:01:49 -0000	1.51
  @@ -889,9 +889,9 @@
           {
               return (fld1 == fld2);
           }
  -        else if (fld1 instanceof BigDecimal)
  +        else if ((fld1 instanceof BigDecimal) && (fld2 instanceof BigDecimal))
           {
  -            return (((BigDecimal) fld1).compareTo(fld2) == 0);
  +            return (((BigDecimal) fld1).compareTo((BigDecimal) fld2) == 0);
           }
           else if ((fld1 instanceof Date) && (fld2 instanceof Date))
           {
  
  
  

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


Mime
View raw message