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
commit ea83e8cb19490634ee811d871c845af709d0d2d0 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 19 10:38:07 2023 -0400 Javadoc --- .../org/apache/commons/io/input/UncheckedFilterReader.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java b/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java index c252dde6..4137a562 100644 --- a/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java +++ b/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java @@ -22,7 +22,9 @@ import java.io.IOException; import java.io.Reader; import java.io.UncheckedIOException; import java.nio.CharBuffer; +import java.nio.charset.Charset; +import org.apache.commons.io.build.AbstractOrigin; import org.apache.commons.io.build.AbstractStreamBuilder; import org.apache.commons.io.function.Uncheck; @@ -62,8 +64,17 @@ public final class UncheckedFilterReader extends FilterReader { /** * Constructs a new instance. + * <p> + * This builder use the aspects Reader and Charset. + * </p> + * <p> + * You must provide an origin that can be converted to a Reader by this builder, otherwise, this call will throw an + * {@link UnsupportedOperationException}. + * </p> * - * @throws UnsupportedOperationException if the origin cannot be converted to a Reader. + * @return a new instance. + * @throws UnsupportedOperationException if the origin cannot provide a Reader. + * @see AbstractOrigin#getReader(Charset) */ @Override public UncheckedFilterReader get() {