Speed improvement to the PropertyXMLEncoder

This commit is contained in:
ccancellieri 2011-11-14 16:49:09 +01:00
parent e99471353d
commit 0e3bf5e9cb

View File

@ -102,7 +102,7 @@ public class PropertyXMLEncoder extends XmlElement {
if ((pp = ElementUtils.contains(e, key)) == null) if ((pp = ElementUtils.contains(e, key)) == null)
add(e, key, value); add(e, key, value);
else { else {
ElementUtils.remove(e, pp); ElementUtils.remove(pp, pp);
add(e, key, value); add(e, key, value);
} }
} }