From ce31aec55667342682655004dfaafaea09c2b3be Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Sat, 26 Jan 2002 19:32:42 +0000 Subject: [PATCH] Fix static access and unused variable git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270902 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Sleep.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Sleep.java b/src/main/org/apache/tools/ant/taskdefs/Sleep.java index a3a626b87..968a458ae 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Sleep.java +++ b/src/main/org/apache/tools/ant/taskdefs/Sleep.java @@ -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"); }