From 58bbb4ac7e73952968767fe86fdfa1047843f342 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Thu, 30 Nov 2006 09:30:28 +0000 Subject: 2006-11-30 Gary Benson * java/lang/Thread.java: Javadoc fixes. --- ChangeLog | 4 ++++ java/lang/Thread.java | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 30f4950ed..f5df7d7d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-11-30 Gary Benson + + * java/lang/Thread.java: Javadoc fixes. + 2006-11-29 Tania Bento * tools/gnu/classpath/tools/appletviewer/TagParser.java: diff --git a/java/lang/Thread.java b/java/lang/Thread.java index 36b7c3303..5f70f558f 100644 --- a/java/lang/Thread.java +++ b/java/lang/Thread.java @@ -850,11 +850,13 @@ public class Thread implements Runnable * are no guarantees which thread will be next to run, but most VMs will * choose the highest priority thread that has been waiting longest. * - * @param ms the number of milliseconds to sleep. + * @param ms the number of milliseconds to sleep, or 0 for forever * @throws InterruptedException if the Thread is (or was) interrupted; * it's interrupted status will be cleared * @throws IllegalArgumentException if ms is negative * @see #interrupt() + * @see #notify() + * @see #wait(long) */ public static void sleep(long ms) throws InterruptedException { @@ -874,13 +876,15 @@ public class Thread implements Runnable * immediately when time expires, because some other thread may be * active. So don't expect real-time performance. * - * @param ms the number of milliseconds to sleep + * @param ms the number of milliseconds to sleep, or 0 for forever * @param ns the number of extra nanoseconds to sleep (0-999999) * @throws InterruptedException if the Thread is (or was) interrupted; * it's interrupted status will be cleared * @throws IllegalArgumentException if ms or ns is negative * or ns is larger than 999999. * @see #interrupt() + * @see #notify() + * @see #wait(long, int) */ public static void sleep(long ms, int ns) throws InterruptedException { -- cgit v1.2.1