No need to specify value equal to the default.
Trying to fix random failures on GitHub builds.
MODIFY
src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java
src/test/java/org/apache/commons/io/FileUtilsWaitForTestCase.java
@@ -39,7 +39,7 @@ public void testWaitFor() {
@Test
public void testWaitForInterrupted() throws InterruptedException {
- final AtomicBoolean wasInterrupted = new AtomicBoolean(false);
+ final AtomicBoolean wasInterrupted = new AtomicBoolean();
final CountDownLatch started = new CountDownLatch(1);
final Thread thread1 = new Thread(() -> {
started.countDown();
@@ -47,8 +47,8 @@ public void testWaitForInterrupted() throws InterruptedException {
wasInterrupted.set(Thread.currentThread().isInterrupted());
});
thread1.start();
- started.await();
thread1.interrupt();
+ started.await();
thread1.join();
assertTrue(wasInterrupted.get());
}

No need to specify value equal to the default.

Trying to fix random failures on GitHub builds.