camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1164698 - /camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
Date Fri, 02 Sep 2011 20:40:33 GMT
Author: dkulp
Date: Fri Sep  2 20:40:33 2011
New Revision: 1164698

URL: http://svn.apache.org/viewvc?rev=1164698&view=rev
Log:
Having a serialVersionUID generates a warning if the class is not
Serializable so make LRUCache also serializable

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java?rev=1164698&r1=1164697&r2=1164698&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/LRUCache.java Fri Sep  2 20:40:33
2011
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.util;
 
+import java.io.Serializable;
 import java.util.Collection;
 import java.util.Map;
 import java.util.Set;
@@ -28,8 +29,9 @@ import com.googlecode.concurrentlinkedha
  *
  * @version 
  */
-public class LRUCache<K, V> implements Map<K, V> {
+public class LRUCache<K, V> implements Map<K, V>, Serializable {
     private static final long serialVersionUID = -342098639681884414L;
+    
     private int maxCacheSize = 10000;
     private final AtomicLong hits = new AtomicLong();
     private final AtomicLong misses = new AtomicLong();



Mime
View raw message