reta commented on a change in pull request #867:
URL: https://github.com/apache/cxf/pull/867#discussion_r736863506



##########
File path: core/src/main/java/org/apache/cxf/helpers/IOUtils.java
##########
@@ -240,6 +244,9 @@ public static int copy(final InputStream input, final 
OutputStream output,
     public static void copyAtLeast(final InputStream input,
                                final OutputStream output,
                                int atLeast) throws IOException {
+        if (input == null || output == null ) {

Review comment:
       Could you please use `Objects::requireNonNull` from the standard 
library? For example,
   
   ```
   Objects.requireNonNull(input, "The inputStream is required but null value 
was provided");
   Objects.requireNonNull(outputStream, "The outputStream is required but null 
value was provided");
   ```
   
   Thank you.




-- 
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