Author: nfilotto
Date: 2011-04-29 14:52:14 -0400 (Fri, 29 Apr 2011)
New Revision: 4338
Modified:
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java
Log:
EXOJCR-1221: fixed the violation called "The equals and hashCode methods of URL are
blocking"
Modified:
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java
===================================================================
---
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java 2011-04-29
17:55:21 UTC (rev 4337)
+++
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java 2011-04-29
18:52:14 UTC (rev 4338)
@@ -37,7 +37,6 @@
import org.jboss.cache.config.EvictionRegionConfig;
import java.io.Serializable;
-import java.net.URL;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@@ -349,14 +348,14 @@
*/
private static class ConfigurationKey
{
- private final URL jgroupsConfigFile;
+ private final String jgroupsConfigFile;
private final Configuration conf;
public ConfigurationKey(Configuration initialConf) throws
CloneNotSupportedException
{
// Clone it first since it will be modified
this.conf = initialConf.clone();
- this.jgroupsConfigFile = conf.getJGroupsConfigFile();
+ this.jgroupsConfigFile = (conf.getJGroupsConfigFile() == null ? null :
conf.getJGroupsConfigFile().toString());
// remove the jgroupsConfigFile from the conf
conf.setJgroupsConfigFile(null);
// remove the EvictionConfig to ignore it
Show replies by date