You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2016/11/21 15:26:09 UTC

svn commit: r1770704 - /commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java

Author: tv
Date: Mon Nov 21 15:26:09 2016
New Revision: 1770704

URL: http://svn.apache.org/viewvc?rev=1770704&view=rev
Log:
Remove exception that is never thrown

Modified:
    commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java

Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java?rev=1770704&r1=1770703&r2=1770704&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCache.java Mon Nov 21 15:26:09 2016
@@ -25,7 +25,6 @@ import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
-import java.util.ConcurrentModificationException;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -588,16 +587,6 @@ public class IndexedDiskCache<K, V> exte
                     + ", size: " + ded.len);
             }
         }
-        catch (ConcurrentModificationException cme)
-        {
-            // do nothing, this means it has gone back to memory mid
-            // serialization
-            if (log.isDebugEnabled())
-            {
-                // this shouldn't be possible
-                log.debug(logCacheName + "Caught ConcurrentModificationException." + cme);
-            }
-        }
         catch (IOException e)
         {
             log.error(logCacheName + "Failure updating element, key: " + ce.getKey() + " old: " + old, e);