commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r903793 - /commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/utils/InMemoryLRUCache.java
Date Wed, 27 Jan 2010 19:45:04 GMT
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.



Mime
View raw message