We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93b30c commit e24dcb1Copy full SHA for e24dcb1
src/test/java/org/apache/commons/io/IOUtilsTest.java
@@ -365,12 +365,8 @@ public void testCloseQuietly_AllCloseableIOException() {
365
366
@Test
367
public void testCloseQuietly_CloseableIOException() {
368
- assertDoesNotThrow(() -> {
369
- IOUtils.closeQuietly(BrokenInputStream.INSTANCE);
370
- });
371
372
- IOUtils.closeQuietly(BrokenOutputStream.INSTANCE);
373
+ assertDoesNotThrow(() -> IOUtils.closeQuietly(BrokenInputStream.INSTANCE));
+ assertDoesNotThrow(() -> IOUtils.closeQuietly(BrokenOutputStream.INSTANCE));
374
}
375
376
@SuppressWarnings("squid:S2699") // Suppress "Add at least one assertion to this test case"
0 commit comments