diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java index 6733c733f8c1a..d218f727e905a 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java @@ -337,7 +337,7 @@ public Optional 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) { @@ -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) {