ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Sleep.java
Date Sat, 26 Jan 2002 19:32:42 GMT
sbailliez    02/01/26 11:32:42

  Modified:    src/main/org/apache/tools/ant/taskdefs Sleep.java
  Log:
  Fix static access and unused variable
  
  Revision  Changes    Path
  1.3       +2 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java
  
  Index: Sleep.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Sleep.java	25 Jun 2001 15:28:34 -0000	1.2
  +++ Sleep.java	26 Jan 2002 19:32:42 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -144,7 +144,7 @@
        */
       public void doSleep(long millis) {
           try {
  -            Thread.currentThread().sleep(millis);
  +            Thread.sleep(millis);
           }
           catch (InterruptedException ie) {
           }
  @@ -179,7 +179,6 @@
        */
       public void validate() 
           throws BuildException {
  -        long sleepTime = getSleepTime();
           if (getSleepTime() < 0) {
               throw new BuildException("Negative sleep periods are not supported");
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message