public void threadDump(){
  if (canDumpLocks) {
    if (tmbean.isObjectMonitorUsageSupported() && tmbean.isSynchronizerUsageSupported()) {
      dumpThreadInfoWithLocks();
    }
  }
 else {
    dumpThreadInfo();
  }
}

public void threadDump ( ) { if ( canDumpLocks ) { if ( tmbean . isObjectMonitorUsageSupported ( ) && tmbean . isSynchronizerUsageSupported ( ) ) { dumpThreadInfoWithLocks ( ) ; } } else { dumpThreadInfo ( ) ; } }
prints the thread dump information to system . out .
