ppkarwasz commented on code in PR #784:
URL: https://github.com/apache/commons-io/pull/784#discussion_r2366838399


##########
src/main/java/org/apache/commons/io/build/AbstractOrigin.java:
##########
@@ -203,7 +452,7 @@ public CharSequenceOrigin(final CharSequence origin) {
         @Override
         public byte[] getByteArray() {
             // TODO Pass in a Charset? Consider if call sites actually need 
this.
-            return origin.toString().getBytes(Charset.defaultCharset());
+            return 
getCharSequence(null).toString().getBytes(Charset.defaultCharset());

Review Comment:
   Fixed in 
https://github.com/apache/commons-io/pull/784/commits/24fff74dc1645e7b566fb167befe1ad167c1ba62



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