ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Sleep.java
Date Mon, 25 Jun 2001 15:28:37 GMT
bodewig     01/06/25 08:28:37

  Modified:    src/main/org/apache/tools/ant/taskdefs Sleep.java
  Log:
  Declare BuildException in Sleep.validate explicitly.
  
  Submitted by:	Steve Loughran <steve_l@iseran.com>
  
  Revision  Changes    Path
  1.2       +2 -1      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Sleep.java	2001/06/21 10:19:11	1.1
  +++ Sleep.java	2001/06/25 15:28:34	1.2
  @@ -177,7 +177,8 @@
        *
        * @throws BuildException if something is invalid
        */
  -    public void validate() {
  +    public void validate() 
  +        throws BuildException {
           long sleepTime = getSleepTime();
           if (getSleepTime() < 0) {
               throw new BuildException("Negative sleep periods are not supported");
  
  
  

Mime
View raw message