closeQuietly is deprecated
MODIFY
src/test/java/org/apache/commons/io/LineIteratorTestCase.java
src/test/java/org/apache/commons/io/LineIteratorTestCase.java
@@ -54,7 +54,11 @@ private void assertLines(final List<String> lines, final LineIterator iterator)
}
assertFalse(iterator.hasNext(), "No more expected");
} finally {
- LineIterator.closeQuietly(iterator);
+ try {
+ IOUtils.close(iterator);
+ } catch (IOException ignored) {
+ // Ignored
+ }
}
}
@@ -414,7 +418,11 @@ protected boolean isValidLine(final String line) {
// ignore, expected result
}
} finally {
- LineIterator.closeQuietly(iterator);
+ try {
+ IOUtils.close(iterator);
+ } catch (IOException ignored) {
+ // Ignored
+ }
}
}

MODIFY
src/test/java/org/apache/commons/io/input/TailerTest.java
src/test/java/org/apache/commons/io/input/TailerTest.java
@@ -316,7 +316,11 @@ protected void createFile(final File file, final long size)
}
}
} finally {
- IOUtils.closeQuietly(reader);
+ try {
+ IOUtils.close(reader);
+ } catch (IOException ignored) {
+ // ignored
+ }
}
}

closeQuietly is deprecated