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 @@ -510,16 +510,12 @@ public int hashCode() {
510
510
public String toString () {
511
511
StringBuilder builder = new StringBuilder ();
512
512
for (Annotation ann : getAnnotations ()) {
513
- builder .append ('@' ).append (getName ( ann .annotationType ())).append (' ' );
513
+ builder .append ('@' ).append (ann .annotationType (). getName ( )).append (' ' );
514
514
}
515
515
builder .append (getResolvableType ());
516
516
return builder .toString ();
517
517
}
518
518
519
- private static String getName (Class <?> clazz ) {
520
- String canonicalName = clazz .getCanonicalName ();
521
- return (canonicalName != null ? canonicalName : clazz .getName ());
522
- }
523
519
524
520
/**
525
521
* Create a new type descriptor for an object.
@@ -801,7 +797,7 @@ public int hashCode() {
801
797
802
798
@ Override
803
799
public String toString () {
804
- return "AnnotatedElementAdapter annotations=" + Arrays .toString (this .annotations );
800
+ return Arrays .toString (this .annotations );
805
801
}
806
802
}
807
803
You can’t perform that action at this time.
0 commit comments