Author: nfilotto
Date: 2011-04-29 13:55:21 -0400 (Fri, 29 Apr 2011)
New Revision: 4337
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java
Log:
EXOJCR-1221: fixed the violation called "The equals and hashCode methods of URL are
blocking"
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java 2011-04-29
15:09:58 UTC (rev 4336)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java 2011-04-29
17:55:21 UTC (rev 4337)
@@ -39,7 +39,6 @@
import java.io.IOException;
import java.io.InputStream;
-import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.HashMap;
@@ -331,7 +330,7 @@
*/
private static class ConfigurationKey
{
- private final URL jgroupsConfigFile;
+ private final String jgroupsConfigFile;
private final Configuration conf;
@@ -339,7 +338,7 @@
{
// 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