You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2010/01/27 20:45:04 UTC

svn commit: r903793 - /commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java

Author: simonetripodi
Date: Wed Jan 27 19:45:03 2010
New Revision: 903793

URL: http://svn.apache.org/viewvc?rev=903793&view=rev
Log:
made the InMemoryLRUCache Serializable, it was violating Pattern id: SE_BAD_FIELD_INNER_CLASS, type: Se, category: BAD_PRACTICE

Modified:
    commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java

Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java
URL: http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java?rev=903793&r1=903792&r2=903793&view=diff
==============================================================================
--- commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java (original)
+++ commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java Wed Jan 27 19:45:03 2010
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.digester.annotations.utils;
 
+import java.io.Serializable;
 import java.util.LinkedHashMap;
 import java.util.Map;
 
@@ -25,7 +26,12 @@
  * @version $Id$
  * @since 2.1
  */
-public final class InMemoryLRUCache<K, V> {
+public final class InMemoryLRUCache<K, V> implements Serializable {
+
+    /**
+     * This class serialVersionUID.
+     */
+    private static final long serialVersionUID = 1L;
 
     /**
      * The fixed cache size.