File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/java.base/share/classes/java/lang Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2353,13 +2353,16 @@ public final void join() throws InterruptedException {
2353
2353
2354
2354
/**
2355
2355
* 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.
2358
2360
*
2359
2361
* @param duration
2360
2362
* the maximum duration to wait
2361
2363
*
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
2363
2366
*
2364
2367
* @throws InterruptedException
2365
2368
* if the current thread is interrupted while waiting.
You can’t perform that action at this time.
0 commit comments