cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r454218 - /incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java
Date Sun, 08 Oct 2006 21:36:48 GMT
Author: aadamchik
Date: Sun Oct  8 14:36:47 2006
New Revision: 454218

URL: http://svn.apache.org/viewvc?view=rev&rev=454218
Log:
added toString method for easier debugging

Modified:
    incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java

Modified: incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java?view=diff&rev=454218&r1=454217&r2=454218
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/property/SimpleProperty.java
Sun Oct  8 14:36:47 2006
@@ -30,7 +30,7 @@
 
     protected ClassDescriptor owner;
     protected PropertyAccessor accessor;
-    
+
     // name is derived from accessor, cached here for performance
     final String name;
 
@@ -81,5 +81,12 @@
     public void writePropertyDirectly(Object object, Object oldValue, Object newValue)
             throws PropertyAccessException {
         accessor.writePropertyDirectly(object, oldValue, newValue);
+    }
+
+    public String toString() {
+        StringBuffer buffer = new StringBuffer();
+        buffer.append(getClass().getName()).append('@').append(
+                System.identityHashCode(this)).append('[').append(name).append(']');
+        return buffer.toString();
     }
 }



Mime
View raw message