Skip to content

Commit 5dc5111

Browse files
committed
Add @SuppressWarnings("resource")
1 parent c91d089 commit 5dc5111

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/apache/commons/io/LineIterator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static void closeQuietly(final LineIterator iterator) {
8080
* @param reader the {@link Reader} to read from, not null
8181
* @throws IllegalArgumentException if the reader is null
8282
*/
83+
@SuppressWarnings("resource") // Caller closes Reader
8384
public LineIterator(final Reader reader) throws IllegalArgumentException {
8485
Objects.requireNonNull(reader, "reader");
8586
if (reader instanceof BufferedReader) {

0 commit comments

Comments
 (0)