Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Mar 10, 2024
1 parent 7fa2a28 commit 5345a13
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -742,9 +742,9 @@ public static TypeDescriptor nested(Property property, int nestingLevel) {
* @see AnnotatedElementUtils#getMergedAnnotation(AnnotatedElement, Class)
*/
private static final class AnnotatedElementAdapter implements AnnotatedElement, Serializable {

private static final AnnotatedElementAdapter EMPTY = new AnnotatedElementAdapter(new Annotation[0]);

@NonNull
private final Annotation[] annotations;

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

@Override
public Annotation[] getAnnotations() {
return isEmpty() ? this.annotations : this.annotations.clone();
return (isEmpty() ? this.annotations : this.annotations.clone());
}

@Override
Expand All @@ -791,7 +791,7 @@ public Annotation[] getDeclaredAnnotations() {
}

public boolean isEmpty() {
return this.annotations.length == 0;
return (this.annotations.length == 0);
}

@Override
Expand All @@ -807,7 +807,7 @@ public int hashCode() {

@Override
public String toString() {
return "{AnnotatedElementAdapter annotations=" + Arrays.toString(this.annotations) + "}";
return "AnnotatedElementAdapter annotations=" + Arrays.toString(this.annotations);
}
}

Expand Down

0 comments on commit 5345a13

Please sign in to comment.