Log Message
Use normal HashMap, names of elements and attributes are normally limited.
Modified Paths
Diff
Modified: trunk/xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java (2139 => 2140)
--- trunk/xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java 2013-09-26 20:10:12 UTC (rev 2139)
+++ trunk/xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java 2013-09-26 20:58:39 UTC (rev 2140)
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2006 Joe Walnes.
- * Copyright (C) 2006, 2007, 2008, 2009, 2011 XStream Committers.
+ * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2013 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
@@ -12,10 +12,10 @@
package com.thoughtworks.xstream.io.xml;
import com.thoughtworks.xstream.converters.reflection.ObjectAccessException;
-import com.thoughtworks.xstream.core.util.WeakCache;
import com.thoughtworks.xstream.io.naming.NameCoder;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.Map;
@@ -285,11 +285,15 @@
}
private Object readResolve() {
- escapeCache = new WeakCache();
- unescapeCache = new WeakCache();
+ escapeCache = createCacheMap();
+ unescapeCache = createCacheMap();
return this;
}
+ protected Map createCacheMap() {
+ return new HashMap();
+ }
+
private static class IntPair {
int min;
int max;
To unsubscribe from this list please visit:
