Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 18, 2024
1 parent 88a7ca0 commit 6b90504
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,11 @@ private String resolveCorsAnnotationValue(String value) {
private static class AnnotationDescriptor<A extends Annotation> {

private final A annotation;
private final Annotation source;
private final MergedAnnotation<?> root;

AnnotationDescriptor(MergedAnnotation<A> mergedAnnotation) {
this.annotation = mergedAnnotation.synthesize();
this.source = (mergedAnnotation.getDistance() > 0 ?
mergedAnnotation.getRoot().synthesize() : this.annotation);
this.root = mergedAnnotation.getRoot();
}

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

@Override
public String toString() {
return this.source.toString();
return this.root.synthesize().toString();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,11 @@ private String resolveCorsAnnotationValue(String value) {
private static class AnnotationDescriptor<A extends Annotation> {

private final A annotation;
private final Annotation source;
private final MergedAnnotation<?> root;

AnnotationDescriptor(MergedAnnotation<A> mergedAnnotation) {
this.annotation = mergedAnnotation.synthesize();
this.source = (mergedAnnotation.getDistance() > 0 ?
mergedAnnotation.getRoot().synthesize() : this.annotation);
this.root = mergedAnnotation.getRoot();
}

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

@Override
public String toString() {
return this.source.toString();
return this.root.synthesize().toString();
}

}
Expand Down

0 comments on commit 6b90504

Please sign in to comment.