You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/02 23:02:47 UTC

[commons-io] branch master updated: Simplify

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git


The following commit(s) were added to refs/heads/master by this push:
     new fad416c8 Simplify
fad416c8 is described below

commit fad416c82d764dc1d7d75534a6b14970030651f2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 2 19:02:43 2023 -0400

    Simplify
---
 src/main/java/org/apache/commons/io/input/ReaderInputStream.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/input/ReaderInputStream.java b/src/main/java/org/apache/commons/io/input/ReaderInputStream.java
index 7e5bee6f..e4d9c0fb 100644
--- a/src/main/java/org/apache/commons/io/input/ReaderInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/ReaderInputStream.java
@@ -138,7 +138,7 @@ public class ReaderInputStream extends InputStream {
         public Builder setCharsetEncoder(final CharsetEncoder charsetEncoder) {
             this.charsetEncoder = charsetEncoder;
             super.setCharset(charsetEncoder.charset());
-            return asThis();
+            return this;
         }
 
     }