db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r538207 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java
Date Tue, 15 May 2007 15:23:08 GMT
Author: arminw
Date: Tue May 15 08:23:08 2007
New Revision: 538207

URL: http://svn.apache.org/viewvc?view=rev&rev=538207
Log:
optimize imports, comments, source

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java?view=diff&rev=538207&r1=538206&r2=538207
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java Tue May 15 08:23:08
2007
@@ -357,7 +357,7 @@
         void referenceProcessing(final Image oldImage)
         {
             SingleRef oldRef = (SingleRef) oldImage;
-            boolean isSame = getReferenceObjectOrProxy() == oldRef.getReferenceObjectOrProxy();
+            boolean isSame = referenceObjOrProxy == oldRef.referenceObjOrProxy;
             if(!isSame)
             {
                 Identity newOid = getIdentity();
@@ -366,21 +366,21 @@
                 {
                     if(oldOid != null)
                     {
-                        listener.deletedOneToOne(ord, oldRef.getReferenceObjectOrProxy(),
oldOid, true);
+                        listener.deletedOneToOne(ord, oldRef.referenceObjOrProxy, oldOid,
true);
                     }
                 }
                 else
                 {
                     if(oldOid == null)
                     {
-                        listener.addedOneToOne(ord, getReferenceObjectOrProxy(), newOid);
+                        listener.addedOneToOne(ord, referenceObjOrProxy, newOid);
                     }
                     else
                     {
                         if(!newOid.equals(oldOid))
                         {
-                            listener.deletedOneToOne(ord, oldRef.getReferenceObjectOrProxy(),
oldOid, false);
-                            listener.addedOneToOne(ord, getReferenceObjectOrProxy(), newOid);
+                            listener.deletedOneToOne(ord, oldRef.referenceObjOrProxy, oldOid,
false);
+                            listener.addedOneToOne(ord, referenceObjOrProxy, newOid);
                         }
                     }
                 }



---------------------------------------------------------------------
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