Author: doogie
Date: Mon Jun 21 07:09:08 2010
New Revision: 956471
URL:
http://svn.apache.org/viewvc?rev=956471&view=revLog:
s/safeWait/Thread.sleep/
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java?rev=956471&r1=956470&r2=956471&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java Mon Jun 21 07:09:08 2010
@@ -1006,14 +1006,12 @@ public class UtilMisc {
}
}
+ /** @deprecated use Thread.sleep() */
+ @Deprecated
public static void staticWait(long timeout) throws InterruptedException {
- new UtilMiscWaiter().safeWait(timeout);
- }
- protected static class UtilMiscWaiter {
- public synchronized void safeWait(long timeout) throws InterruptedException {
- this.wait(timeout);
- }
+ Thread.sleep(timeout);
}
+
public static void copyFile(File sourceLocation , File targetLocation) throws IOException {
if (sourceLocation.isDirectory()) {
throw new IOException("File is a directory, not a file, cannot copy") ;