svn commit: r956471 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r956471 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilMisc.java

doogie-3
Author: doogie
Date: Mon Jun 21 07:09:08 2010
New Revision: 956471

URL: http://svn.apache.org/viewvc?rev=956471&view=rev
Log:
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") ;