Marcono1234 commented on code in PR #293:
URL: https://github.com/apache/commons-io/pull/293#discussion_r851683178


##########
src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java:
##########
@@ -71,17 +72,21 @@ public CharSequenceInputStream(final CharSequence cs, final 
Charset charset) {
      * @throws IllegalArgumentException if the buffer is not large enough to 
hold a complete character.
      */
     public CharSequenceInputStream(final CharSequence cs, final Charset 
charset, final int bufferSize) {
+        Objects.requireNonNull(cs);
+        if (bufferSize < 1) {
+            throw new IllegalArgumentException("Buffer size must be >= 1");
+        }
+        // TODO: bufferSize is unused

Review Comment:
   Will change this to pass it to `ReaderInputStream` and use it as inital 
`encoderOut` size there.



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