/[classpath]/classpath/java/lang/Thread.java
ViewVC logotype

Diff of /classpath/java/lang/Thread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.9 by gnu_andrew, Tue Sep 20 18:46:29 2005 UTC revision 1.8.2.10 by gnu_andrew, Wed Nov 2 00:43:33 2005 UTC
# Line 832  public class Thread implements Runnable Line 832  public class Thread implements Runnable
832    public static void sleep(long ms, int ns) throws InterruptedException    public static void sleep(long ms, int ns) throws InterruptedException
833    {    {
834      // Check parameters      // Check parameters
835      if (ms < 0 || ns < 0 || ns > 999999)      if (ms < 0 )
836        throw new IllegalArgumentException();        throw new IllegalArgumentException("Negative milliseconds: " + ms);
837    
838        if (ns < 0 || ns > 999999)
839          throw new IllegalArgumentException("Nanoseconds ouf of range: " + ns);
840    
841      // Really sleep      // Really sleep
842      VMThread.sleep(ms, ns);      VMThread.sleep(ms, ns);

Legend:
Removed from v.1.8.2.9  
changed lines
  Added in v.1.8.2.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26