Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
aureamunoz committed Nov 26, 2024
1 parent 53896ec commit 06c87be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public Optional<ResourceClass> createEndpoints(ClassInfo classInfo, boolean cons
}

private boolean isSpringRestController(ClassInfo classInfo) {
return classInfo.declaredAnnotation("org.springframework.web.bind.annotation.RestController") != null;
return classInfo.declaredAnnotation(DotName.createSimple("org.springframework.web.bind.annotation.RestController")) != null;
}

private String sanitizePath(String path) {
Expand Down Expand Up @@ -1045,7 +1045,7 @@ private static String methodDescriptor(MethodInfo info) {
return info.name() + ":" + info.descriptor();
}

public static boolean moreThanOne(AnnotationInstance... annotations) {
private static boolean moreThanOne(AnnotationInstance... annotations) {
boolean oneNonNull = false;
for (AnnotationInstance annotation : annotations) {
if (annotation != null) {
Expand Down

0 comments on commit 06c87be

Please sign in to comment.