From 06c87be06474f87bc2d720cbc9fcb1e7f79f16b9 Mon Sep 17 00:00:00 2001 From: Auri Munoz Date: Mon, 25 Nov 2024 09:31:37 +0100 Subject: [PATCH] review --- .../resteasy/reactive/common/processor/EndpointIndexer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {