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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f176c4c159193278322b9a7af94ea24b13b68abe
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Jan 6 10:21:49 2023 +0100

    (chores) camel-resteasy: avoid risky unboxing
---
 .../apache/camel/component/resteasy/servlet/ResteasyCamelServlet.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyCamelServlet.java
 
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyCamelServlet.java
index fccd37f9776..46a53538541 100644
--- 
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyCamelServlet.java
+++ 
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyCamelServlet.java
@@ -184,7 +184,7 @@ public class ResteasyCamelServlet extends 
HttpServletDispatcher implements HttpR
 
         // skipServletProcessing is set to true then don't process in servlet. 
Just continue to camel route
         // if skipServletProcessing is true then check httpMethodRestrict
-        if (getServletEndpoint(consumer).getSkipServletProcessing()) {
+        if 
(Boolean.TRUE.equals(getServletEndpoint(consumer).getSkipServletProcessing())) {
             if (getServletEndpoint(consumer).getHttpMethodRestrict() != null
                     && 
!httpServletRequest.getMethod().equals(getServletEndpoint(consumer).getHttpMethodRestrict()))
 {
                 httpServletResponse.setStatus(405);

Reply via email to