jdk/src/share/classes/java/lang/Thread.java
/**
* If this thread was constructed using a separate
* <code>Runnable</code> run object, then that
* <code>Runnable</code> object's <code>run</code> method is called;
* otherwise, this method does nothing and returns.
* <p>
* Subclasses of <code>Thread</code> should override this method.
*
* @see #start()
* @see #stop()
* @see #Thread(ThreadGroup, Runnable, String)
*/
@Override
public void run() {
{- -------------------------------------------
(1) target が設定されていれば, それを対象にして java.lang.Runnable.run() を呼び出す.
target が設定されていなければ, 何もしない.
---------------------------------------- -}
if (target != null) {
target.run();
}
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.