Bläddra i källkod

Improve toString() method to use Class.getName().

Ben Alex 17 år sedan
förälder
incheckning
8f645f97f7

+ 1 - 1
acl/src/main/java/org/springframework/security/acls/objectidentity/ObjectIdentityImpl.java

@@ -144,7 +144,7 @@ public class ObjectIdentityImpl implements ObjectIdentity {
     public String toString() {
     public String toString() {
         StringBuffer sb = new StringBuffer();
         StringBuffer sb = new StringBuffer();
         sb.append(this.getClass().getName()).append("[");
         sb.append(this.getClass().getName()).append("[");
-        sb.append("Java Type: ").append(this.javaType);
+        sb.append("Java Type: ").append(this.javaType.getName());
         sb.append("; Identifier: ").append(this.identifier).append("]");
         sb.append("; Identifier: ").append(this.identifier).append("]");
 
 
         return sb.toString();
         return sb.toString();