Hi all,

This commit adds a couple of notes to java.lang.Thread's
javadoc that were in libgcj but not in Classpath.

Cheers,
Gary
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.8884
diff -u -r1.8884 ChangeLog
--- ChangeLog   29 Nov 2006 20:48:29 -0000      1.8884
+++ ChangeLog   30 Nov 2006 09:29:54 -0000
@@ -1,3 +1,7 @@
+2006-11-30  Gary Benson  <[EMAIL PROTECTED]>
+
+       * java/lang/Thread.java: Javadoc fixes.
+
 2006-11-29  Tania Bento  <[EMAIL PROTECTED]>
 
        * tools/gnu/classpath/tools/appletviewer/TagParser.java:
Index: java/lang/Thread.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Thread.java,v
retrieving revision 1.31
diff -u -r1.31 Thread.java
--- java/lang/Thread.java       1 Jul 2006 12:56:10 -0000       1.31
+++ java/lang/Thread.java       30 Nov 2006 09:29:54 -0000
@@ -850,11 +850,13 @@
    * 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 <i>interrupted status</i> 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 @@
    * 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 <i>interrupted status</i> 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
   {

Reply via email to