parent
6fdf1138ca
commit
b8a7881588
@ -85,7 +85,7 @@ public final class ThreadDeathWatcher {
|
|||||||
*
|
*
|
||||||
* @return {@code true} if and only if the watcher thread has been terminated
|
* @return {@code true} if and only if the watcher thread has been terminated
|
||||||
*/
|
*/
|
||||||
public boolean awaitInactivity(long timeout, TimeUnit unit) throws InterruptedException {
|
public static boolean awaitInactivity(long timeout, TimeUnit unit) throws InterruptedException {
|
||||||
if (unit == null) {
|
if (unit == null) {
|
||||||
throw new NullPointerException("unit");
|
throw new NullPointerException("unit");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user