You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/07/30 16:04:21 UTC

svn commit: r1152465 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java

Author: veithen
Date: Sat Jul 30 14:04:20 2011
New Revision: 1152465

URL: http://svn.apache.org/viewvc?rev=1152465&view=rev
Log:
Eliminated a couple of compiler warnings.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java?rev=1152465&r1=1152464&r2=1152465&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java Sat Jul 30 14:04:20 2011
@@ -298,7 +298,6 @@ public class AttachmentsTest extends Abs
         
         // Set file expiration to 10 seconds
         long INTERVAL = 3 * 1000; // 3 seconds for Thread to sleep
-        Thread t = Thread.currentThread();
 
        
         // Get the AttachmentCacheMonitor and force it to remove files after
@@ -315,28 +314,28 @@ public class AttachmentsTest extends Abs
             String aFileName = aFile.getCanonicalPath();
             acm.register(aFileName);
 
-            t.sleep(INTERVAL);
+            Thread.sleep(INTERVAL);
 
             File bFile = new File("B");
             bFile.createNewFile();
             String bFileName = bFile.getCanonicalPath();
             acm.register(bFileName);
 
-            t.sleep(INTERVAL);
+            Thread.sleep(INTERVAL);
 
             acm.access(aFileName);
 
             // time since file A registration <= cached file expiration
             assertTrue("File A should still exist", aFile.exists());
 
-            t.sleep(INTERVAL);
+            Thread.sleep(INTERVAL);
 
             acm.access(bFileName);
 
             // time since file B registration <= cached file expiration
             assertTrue("File B should still exist", bFile.exists());
 
-            t.sleep(INTERVAL);
+            Thread.sleep(INTERVAL);
 
             File cFile = new File("C");
             cFile.createNewFile();
@@ -344,14 +343,14 @@ public class AttachmentsTest extends Abs
             acm.register(cFileName);
             acm.access(bFileName);
 
-            t.sleep(INTERVAL);
+            Thread.sleep(INTERVAL);
 
             acm.checkForAgedFiles();
 
             // time since file C registration <= cached file expiration
             assertTrue("File C should still exist", cFile.exists());
 
-            t.sleep(10* INTERVAL);  // Give task loop time to delete aged files
+            Thread.sleep(10* INTERVAL);  // Give task loop time to delete aged files
 
 
             // All files should be gone by now