Skip to content

Commit b89cf2b

Browse files
committed
Merge branch '6.1.x'
2 parents 99e1b0d + 36d1bc5 commit b89cf2b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

buildSrc/src/main/java/org/springframework/build/CheckstyleConventions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void apply(Project project) {
5050
project.getPlugins().apply(CheckstylePlugin.class);
5151
project.getTasks().withType(Checkstyle.class).forEach(checkstyle -> checkstyle.getMaxHeapSize().set("1g"));
5252
CheckstyleExtension checkstyle = project.getExtensions().getByType(CheckstyleExtension.class);
53-
checkstyle.setToolVersion("10.14.1");
53+
checkstyle.setToolVersion("10.14.2");
5454
checkstyle.getConfigDirectory().set(project.getRootProject().file("src/checkstyle"));
5555
String version = SpringJavaFormatPlugin.class.getPackage().getImplementationVersion();
5656
DependencySet checkstyleDependencies = project.getConfigurations().getByName("checkstyle").getDependencies();

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,12 @@ public int hashCode() {
545545
public String toString() {
546546
StringBuilder builder = new StringBuilder();
547547
for (Annotation ann : getAnnotations()) {
548-
builder.append('@').append(getName(ann.annotationType())).append(' ');
548+
builder.append('@').append(ann.annotationType().getName()).append(' ');
549549
}
550550
builder.append(getResolvableType());
551551
return builder.toString();
552552
}
553553

554-
private static String getName(Class<?> clazz) {
555-
String canonicalName = clazz.getCanonicalName();
556-
return (canonicalName != null ? canonicalName : clazz.getName());
557-
}
558554

559555
/**
560556
* Create a new type descriptor for an object.
@@ -810,7 +806,7 @@ public int hashCode() {
810806

811807
@Override
812808
public String toString() {
813-
return "AnnotatedElementAdapter annotations=" + Arrays.toString(this.annotations);
809+
return Arrays.toString(this.annotations);
814810
}
815811
}
816812

0 commit comments

Comments
 (0)