Skip to content

Commit 5345a13

Browse files
committed
Polish contribution
See gh-32405
1 parent 7fa2a28 commit 5345a13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -742,9 +742,9 @@ public static TypeDescriptor nested(Property property, int nestingLevel) {
742742
* @see AnnotatedElementUtils#getMergedAnnotation(AnnotatedElement, Class)
743743
*/
744744
private static final class AnnotatedElementAdapter implements AnnotatedElement, Serializable {
745+
745746
private static final AnnotatedElementAdapter EMPTY = new AnnotatedElementAdapter(new Annotation[0]);
746747

747-
@NonNull
748748
private final Annotation[] annotations;
749749

750750
private AnnotatedElementAdapter(@NonNull Annotation[] annotations) {
@@ -782,7 +782,7 @@ public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
782782

783783
@Override
784784
public Annotation[] getAnnotations() {
785-
return isEmpty() ? this.annotations : this.annotations.clone();
785+
return (isEmpty() ? this.annotations : this.annotations.clone());
786786
}
787787

788788
@Override
@@ -791,7 +791,7 @@ public Annotation[] getDeclaredAnnotations() {
791791
}
792792

793793
public boolean isEmpty() {
794-
return this.annotations.length == 0;
794+
return (this.annotations.length == 0);
795795
}
796796

797797
@Override
@@ -807,7 +807,7 @@ public int hashCode() {
807807

808808
@Override
809809
public String toString() {
810-
return "{AnnotatedElementAdapter annotations=" + Arrays.toString(this.annotations) + "}";
810+
return "AnnotatedElementAdapter annotations=" + Arrays.toString(this.annotations);
811811
}
812812
}
813813

0 commit comments

Comments
 (0)