db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r586693 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java
Date Sat, 20 Oct 2007 09:55:01 GMT
Author: andyj
Date: Sat Oct 20 02:55:00 2007
New Revision: 586693

URL: http://svn.apache.org/viewvc?rev=586693&view=rev
Log:
JDO-539 Fix equals of Oid to use equals rather than == for comparing object equality

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java?rev=586693&r1=586692&r2=586693&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedJPA/JPAAppPhoneNumber.java
Sat Oct 20 02:55:00 2007
@@ -176,8 +176,8 @@
             if( obj==null ||
                 !this.getClass().equals(obj.getClass()) ) return( false );
             Oid o = (Oid) obj;
-            if( this.person != o.person ) return( false );
-            if( this.type != o.type ) return( false );
+            if( !this.person.equals(o.person) ) return( false );
+            if( !this.type.equals(o.type) ) return( false );
             return( true );
         }
 



Mime
View raw message