svn commit: r923091 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java

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

svn commit: r923091 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java

doogie-3
Author: doogie
Date: Mon Mar 15 07:19:57 2010
New Revision: 923091

URL: http://svn.apache.org/viewvc?rev=923091&view=rev
Log:
Full branch coverage now.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java?rev=923091&r1=923090&r2=923091&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/test/TTLObjectTest.java Mon Mar 15 07:19:57 2010
@@ -113,10 +113,8 @@ public abstract class TTLObjectTest exte
                     Thread.sleep(10);
                     if (checkSerial(serial)) break;
                 }
-                Thrower thrower;
-                do {
-                    thrower = (Thrower) throwException.get();
-                } while (!throwException.compareAndSet(thrower, null));
+                Thrower thrower = (Thrower) throwException.get();
+                throwException.compareAndSet(thrower, null);
                 if (thrower != null) {
                     thrower.throwException();
                 }