Fix incorrect method signature of awaitInactivity()

- Related: #2084
This commit is contained in:
Trustin Lee 2014-06-17 15:59:11 +09:00
parent 066f95d047
commit 4d60ea2aeb

View File

@ -85,7 +85,7 @@ public final class ThreadDeathWatcher {
*
* @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) {
throw new NullPointerException("unit");
}