File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
spring-core/src/main/java/org/springframework/core/convert Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -511,16 +511,12 @@ public int hashCode() {
511
511
public String toString () {
512
512
StringBuilder builder = new StringBuilder ();
513
513
for (Annotation ann : getAnnotations ()) {
514
- builder .append ('@' ).append (getName ( ann .annotationType ())).append (' ' );
514
+ builder .append ('@' ).append (ann .annotationType (). getName ( )).append (' ' );
515
515
}
516
516
builder .append (getResolvableType ());
517
517
return builder .toString ();
518
518
}
519
519
520
- private static String getName (Class <?> clazz ) {
521
- String canonicalName = clazz .getCanonicalName ();
522
- return (canonicalName != null ? canonicalName : clazz .getName ());
523
- }
524
520
525
521
/**
526
522
* Create a new type descriptor for an object.
@@ -802,7 +798,7 @@ public int hashCode() {
802
798
803
799
@ Override
804
800
public String toString () {
805
- return "AnnotatedElementAdapter annotations=" + Arrays .toString (this .annotations );
801
+ return Arrays .toString (this .annotations );
806
802
}
807
803
}
808
804
You can’t perform that action at this time.
0 commit comments