|
|
|
|
@ -545,7 +545,7 @@ public class TypeDescriptor implements Serializable {
@@ -545,7 +545,7 @@ public class TypeDescriptor implements Serializable {
|
|
|
|
|
public String toString() { |
|
|
|
|
StringBuilder builder = new StringBuilder(); |
|
|
|
|
for (Annotation ann : getAnnotations()) { |
|
|
|
|
builder.append('@').append(ann.annotationType().getName()).append(' '); |
|
|
|
|
builder.append('@').append(getName(ann.annotationType())).append(' '); |
|
|
|
|
} |
|
|
|
|
builder.append(getResolvableType()); |
|
|
|
|
return builder.toString(); |
|
|
|
|
@ -733,6 +733,11 @@ public class TypeDescriptor implements Serializable {
@@ -733,6 +733,11 @@ public class TypeDescriptor implements Serializable {
|
|
|
|
|
return new TypeDescriptor(property).nested(nestingLevel); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static String getName(Class<?> clazz) { |
|
|
|
|
String canonicalName = clazz.getCanonicalName(); |
|
|
|
|
return (canonicalName != null ? canonicalName : clazz.getName()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Adapter class for exposing a {@code TypeDescriptor}'s annotations as an |
|
|
|
|
|