private final void detectDeadlock() throws UninterruptiblePragma { if (threadState == WAITING) { walkWaitingThreads(this);
private final void detectDeadlock() { if (isWaiting()) { walkWaitingThreads(this);
    private final void detectDeadlock() throws UninterruptiblePragma {        if (threadState == WAITING) {            walkWaitingThreads(this);            }    }