Don't swallow interrupts.

This commit is contained in:
akwizgran
2011-12-01 19:49:22 +00:00
parent 2a38efd13a
commit 28b9e399ae
15 changed files with 18 additions and 42 deletions

View File

@@ -77,7 +77,7 @@ public class LockFairnessTest extends TestCase {
Thread.sleep(sleepTime);
finished.add(this);
} catch(InterruptedException e) {
e.printStackTrace();
fail();
} finally {
lock.readLock().unlock();
}
@@ -101,7 +101,7 @@ public class LockFairnessTest extends TestCase {
Thread.sleep(sleepTime);
finished.add(this);
} catch(InterruptedException e) {
e.printStackTrace();
fail();
} finally {
lock.writeLock().unlock();
}

View File

@@ -32,7 +32,7 @@ public class WindowsShutdownManagerImplTest extends ShutdownManagerImplTest {
Thread.sleep(100);
finished = true;
} catch(InterruptedException e) {
// Don't finish
fail();
}
}
}