File tree 1 file changed +2
-6
lines changed
spring-core/src/main/java/org/springframework/core/convert
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -545,16 +545,12 @@ public int hashCode() {
545
545
public String toString () {
546
546
StringBuilder builder = new StringBuilder ();
547
547
for (Annotation ann : getAnnotations ()) {
548
- builder .append ('@' ).append (getName ( ann .annotationType ())).append (' ' );
548
+ builder .append ('@' ).append (ann .annotationType (). getName ( )).append (' ' );
549
549
}
550
550
builder .append (getResolvableType ());
551
551
return builder .toString ();
552
552
}
553
553
554
- private static String getName (Class <?> clazz ) {
555
- String canonicalName = clazz .getCanonicalName ();
556
- return (canonicalName != null ? canonicalName : clazz .getName ());
557
- }
558
554
559
555
/**
560
556
* Create a new type descriptor for an object.
@@ -810,7 +806,7 @@ public int hashCode() {
810
806
811
807
@ Override
812
808
public String toString () {
813
- return "AnnotatedElementAdapter annotations=" + Arrays .toString (this .annotations );
809
+ return Arrays .toString (this .annotations );
814
810
}
815
811
}
816
812
You can’t perform that action at this time.
0 commit comments