svn commit: r1078197 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java

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

svn commit: r1078197 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java

mrisaliti
Author: mrisaliti
Date: Fri Mar  4 23:01:00 2011
New Revision: 1078197

URL: http://svn.apache.org/viewvc?rev=1078197&view=rev
Log:
Remove some unused variables in ReferenceCleanerTests (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java?rev=1078197&r1=1078196&r2=1078197&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/ReferenceCleanerTests.java Fri Mar  4 23:01:00 2011
@@ -19,7 +19,6 @@
 package org.ofbiz.base.util.test;
 
 import java.util.HashSet;
-import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.SynchronousQueue;
 import java.util.concurrent.TimeUnit;
 
@@ -37,22 +36,19 @@ public class ReferenceCleanerTests exten
         assertStaticHelperClass(ReferenceCleaner.class);
         final SynchronousQueue<String> queue = new SynchronousQueue<String>();
         Object obj = new Object();
-        final CountDownLatch softLatch = new CountDownLatch(1);
         ReferenceCleaner.Soft<Object> soft = new ReferenceCleaner.Soft<Object>(obj) {
             public void remove() throws Exception {
                 queue.put("soft");
                 Thread.currentThread().interrupt();
             }
         };
-        final CountDownLatch weakLatch = new CountDownLatch(1);
         ReferenceCleaner.Weak<Object> weak = new ReferenceCleaner.Weak<Object>(obj) {
             public void remove() throws Exception {
                 queue.put("weak");
                 throw new RuntimeException();
             }
         };
-        final CountDownLatch phantomLatch = new CountDownLatch(1);
-        ReferenceCleaner.Phantom<Object> phantom = new ReferenceCleaner.Phantom<Object>(obj) {
+        new ReferenceCleaner.Phantom<Object>(obj) {
             public void remove() throws Exception {
                 queue.put("phantom");
             }