parent
a2ec2a1e3a
commit
9a169f5865
@ -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