Browse Source

Fix static access and unused variable

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270902 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
ce31aec556
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/taskdefs/Sleep.java

+ 2
- 3
src/main/org/apache/tools/ant/taskdefs/Sleep.java View File

@@ -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 class Sleep extends Task {
*/
public void doSleep(long millis) {
try {
Thread.currentThread().sleep(millis);
Thread.sleep(millis);
}
catch (InterruptedException ie) {
}
@@ -179,7 +179,6 @@ public class Sleep extends Task {
*/
public void validate()
throws BuildException {
long sleepTime = getSleepTime();
if (getSleepTime() < 0) {
throw new BuildException("Negative sleep periods are not supported");
}


Loading…
Cancel
Save