Author: davsclaus
Date: Tue May 3 11:01:28 2011
New Revision: 1099000
URL: http://svn.apache.org/viewvc?rev=1099000&view=rev
Log:
Polished
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java
camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ServicePoolTest.java
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java?rev=1099000&r1=1098999&r2=1099000&view=diff
==============================================================================
---
camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java
(original)
+++
camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUSoftCache.java
Tue May 3 11:01:28 2011
@@ -95,7 +95,7 @@ public class LRUSoftCache<K, V> extends
public Collection<V> values() {
// return a copy of all the active values
Collection<SoftReference<V>> col = (Collection<SoftReference<V>>)
super.values();
- Collection<V> answer = new ArrayList<V>(col.size());
+ Collection<V> answer = new ArrayList<V>();
for (SoftReference<V> ref : col) {
V value = ref.get();
if (value != null) {
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ServicePoolTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ServicePoolTest.java?rev=1099000&r1=1098999&r2=1099000&view=diff
==============================================================================
---
camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ServicePoolTest.java
(original)
+++
camel/trunk/camel-core/src/test/java/org/apache/camel/impl/ServicePoolTest.java
Tue May 3 11:01:28 2011
@@ -78,7 +78,7 @@ public class ServicePoolTest extends Con
protected void tearDown() throws Exception {
pool.stop();
super.tearDown();
- assertEquals("Should have stopped the produers", true, cleanup);
+ assertEquals("Should have stopped the producers", true, cleanup);
}
public void testSingleEntry() throws Exception {