commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Tilden <chris.til...@gmail.com>
Subject [PATCH] collections: Fix static access warning in buffer test
Date Thu, 11 Nov 2004 01:44:18 GMT
### I opened the collections source using Eclipse 3.0.1 and noticed a
### warning this patch fixes that warning.
Index: collections/src/test/org/apache/commons/collections/buffer/TestBlockingBuffer.java
===================================================================
--- a/collections/src/test/org/apache/commons/collections/buffer/TestBlockingBuffer.java
   2004-11-08 13:24:19.533550608 -0800
+++ b/collections/src/test/org/apache/commons/collections/buffer/TestBlockingBuffer.java
   2004-11-08 13:34:05.793425560 -0800
@@ -380,7 +380,7 @@

             try {
                 // wait for other thread to block on get() or remove()
-                Thread.currentThread().sleep(100);
+                Thread.sleep(100);
             }
             catch (InterruptedException e) {}

@@ -403,7 +403,7 @@

             try {
                 // wait for other thread to block on get() or remove()
-                Thread.currentThread().sleep(100);
+                Thread.sleep(100);
             }
             catch (InterruptedException e) {}

@@ -481,7 +481,7 @@

     private void delay(){
         try {
-            Thread.currentThread().sleep(100);
+            Thread.sleep(100);
         } catch (InterruptedException e) {}
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message