Skip to content

Commit 83bb66b

Browse files
committed
javadoc clarification
1 parent f63d845 commit 83bb66b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/java.base/share/classes/java/lang/Thread.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,13 +2353,16 @@ public final void join() throws InterruptedException {
23532353

23542354
/**
23552355
* Waits for this thread to terminate for up to the given waiting duration.
2356-
* This method does not wait if the duration to wait is less than or equal
2357-
* to zero.
2356+
*
2357+
* <p> This method does not wait if the duration to wait is less than or
2358+
* equal to zero. In this case, the method just tests if the thread has
2359+
* terminated.
23582360
*
23592361
* @param duration
23602362
* the maximum duration to wait
23612363
*
2362-
* @return {@code true} if the thread has terminated
2364+
* @return {@code true} if the thread has terminated, {@code false} if the
2365+
* thread has not terminated
23632366
*
23642367
* @throws InterruptedException
23652368
* if the current thread is interrupted while waiting.

0 commit comments

Comments
 (0)