Explorar o código

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

Ben Alex %!s(int64=17) %!d(string=hai) anos
pai
achega
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() {
         StringBuffer sb = new StringBuffer();
         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("]");
 
         return sb.toString();