allthingssecurity commented on code in PR #27523:
URL: https://github.com/apache/camel/pull/27523#discussion_r4215900406


##########
core/camel-support/src/main/java/org/apache/camel/support/cache/ServicePool.java:
##########
@@ -211,7 +213,7 @@ private static boolean isEndpointInUse(Endpoint endpoint) {
                 return true;
             }
         }
-        return false;
+        return context.hasService(s -> s instanceof EndpointAware ea && 
ea.getEndpoint() == endpoint) != null;

Review Comment:
   Thanks, added that note to the `isEndpointInUse` Javadoc in a71670d2d675.
   
   _Claude Code on behalf of allthingssecurity_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to