This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 31d8a4e056 Utility class modernization
31d8a4e056 is described below

commit 31d8a4e0560d980b9d9c9c3c58ae351d1cb2837a
Author: James Bognar <[email protected]>
AuthorDate: Thu Nov 6 10:26:02 2025 -0500

    Utility class modernization
---
 .../src/main/java/org/apache/juneau/rest/RestContext.java              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
 
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
index e07988704a..98103014ae 100644
--- 
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
+++ 
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
@@ -42,6 +42,7 @@ import java.util.concurrent.*;
 import java.util.concurrent.atomic.*;
 import java.util.function.*;
 import java.util.logging.*;
+import java.util.stream.*;
 
 import org.apache.http.Header;
 import org.apache.juneau.*;
@@ -4580,7 +4581,7 @@ public class RestContext extends Context {
                        // @formatter:on
 
                        for (var mi : rci.getPublicMethods()) {
-                               AnnotationList al = 
mi.getAnnotationList(REST_OP_GROUP);
+                               AnnotationList al = 
rstream(mi.getAllAnnotationInfos()).filter(REST_OP_GROUP).collect(Collectors.toCollection(AnnotationList::new));
 
                                // Also include methods on @Rest-annotated 
interfaces.
                                if (al.isEmpty()) {

Reply via email to