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 e96579203abb39474079a897d4ad210946b5d6b9
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Sat Jan 7 09:19:06 2023 +0100

    (chores) camel-resteasy: cleaned unnecessary unboxing/boxing
---
 .../component/resteasy/servlet/ResteasyServletInputStreamCopier.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyServletInputStreamCopier.java
 
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyServletInputStreamCopier.java
index 88f31904f94..ab1a8459ffc 100644
--- 
a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyServletInputStreamCopier.java
+++ 
b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/servlet/ResteasyServletInputStreamCopier.java
@@ -39,7 +39,7 @@ public class ResteasyServletInputStreamCopier extends 
ServletInputStream {
         /* create a new input stream from the cached request body */
         byte[] inputBytes = IOUtils.toByteArray(inputStream);
         this.input = new InputStreamCache(inputBytes);
-        this.copy = new 
CachedByteArrayOutputStream(Long.valueOf(inputBytes.length).intValue());
+        this.copy = new CachedByteArrayOutputStream(inputBytes.length);
     }
 
     @Override

Reply via email to