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 613ab48e700fb97aff8ee078fd102979dad532c2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Nov 23 09:42:33 2023 -0500 Javadoc --- src/main/java/org/apache/commons/io/LineIterator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/LineIterator.java b/src/main/java/org/apache/commons/io/LineIterator.java index 437360da..28cb62e8 100644 --- a/src/main/java/org/apache/commons/io/LineIterator.java +++ b/src/main/java/org/apache/commons/io/LineIterator.java @@ -78,10 +78,10 @@ public class LineIterator implements Iterator<String>, Closeable { * Constructs an iterator of the lines for a {@link Reader}. * * @param reader the {@link Reader} to read from, not null - * @throws IllegalArgumentException if the reader is null + * @throws NullPointerException if the reader is null */ @SuppressWarnings("resource") // Caller closes Reader - public LineIterator(final Reader reader) throws IllegalArgumentException { + public LineIterator(final Reader reader) { Objects.requireNonNull(reader, "reader"); if (reader instanceof BufferedReader) { bufferedReader = (BufferedReader) reader;