File tree 2 files changed +3
-7
lines changed
buildSrc/src/main/java/org/springframework/build
spring-core/src/main/java/org/springframework/core/convert
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public void apply(Project project) {
50
50
project .getPlugins ().apply (CheckstylePlugin .class );
51
51
project .getTasks ().withType (Checkstyle .class ).forEach (checkstyle -> checkstyle .getMaxHeapSize ().set ("1g" ));
52
52
CheckstyleExtension checkstyle = project .getExtensions ().getByType (CheckstyleExtension .class );
53
- checkstyle .setToolVersion ("10.14.1 " );
53
+ checkstyle .setToolVersion ("10.14.2 " );
54
54
checkstyle .getConfigDirectory ().set (project .getRootProject ().file ("src/checkstyle" ));
55
55
String version = SpringJavaFormatPlugin .class .getPackage ().getImplementationVersion ();
56
56
DependencySet checkstyleDependencies = project .getConfigurations ().getByName ("checkstyle" ).getDependencies ();
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