1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -742,9 +742,9 @@ public static TypeDescriptor nested(Property property, int nestingLevel) {
742
742
* @see AnnotatedElementUtils#getMergedAnnotation(AnnotatedElement, Class)
743
743
*/
744
744
private static final class AnnotatedElementAdapter implements AnnotatedElement , Serializable {
745
+
745
746
private static final AnnotatedElementAdapter EMPTY = new AnnotatedElementAdapter (new Annotation [0 ]);
746
747
747
- @ NonNull
748
748
private final Annotation [] annotations ;
749
749
750
750
private AnnotatedElementAdapter (@ NonNull Annotation [] annotations ) {
@@ -782,7 +782,7 @@ public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
782
782
783
783
@ Override
784
784
public Annotation [] getAnnotations () {
785
- return isEmpty () ? this .annotations : this .annotations .clone ();
785
+ return ( isEmpty () ? this .annotations : this .annotations .clone () );
786
786
}
787
787
788
788
@ Override
@@ -791,7 +791,7 @@ public Annotation[] getDeclaredAnnotations() {
791
791
}
792
792
793
793
public boolean isEmpty () {
794
- return this .annotations .length == 0 ;
794
+ return ( this .annotations .length == 0 ) ;
795
795
}
796
796
797
797
@ Override
@@ -807,7 +807,7 @@ public int hashCode() {
807
807
808
808
@ Override
809
809
public String toString () {
810
- return "{ AnnotatedElementAdapter annotations=" + Arrays .toString (this .annotations ) + "}" ;
810
+ return "AnnotatedElementAdapter annotations=" + Arrays .toString (this .annotations );
811
811
}
812
812
}
813
813
0 commit comments