mirror of https://github.com/apache/poi.git
#61350 - Use unsynchronized xmlbeans
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
515cd684e5
commit
2dda87a8ce
|
@ -69,6 +69,9 @@ public class POIXMLTypeLoader {
|
||||||
// so only user code using XmlObject/XmlToken.Factory.parse
|
// so only user code using XmlObject/XmlToken.Factory.parse
|
||||||
// directly can bypass the entity check, which is probably unlikely (... and not within our responsibility :))
|
// directly can bypass the entity check, which is probably unlikely (... and not within our responsibility :))
|
||||||
// DEFAULT_XML_OPTIONS.setLoadEntityBytesLimit(4096);
|
// DEFAULT_XML_OPTIONS.setLoadEntityBytesLimit(4096);
|
||||||
|
|
||||||
|
// POI is not thread-safe - so we can switch to unsynchronized xmlbeans mode - see #61350
|
||||||
|
DEFAULT_XML_OPTIONS.setUnsynchronized();
|
||||||
|
|
||||||
Map<String, String> map = new HashMap<String, String>();
|
Map<String, String> map = new HashMap<String, String>();
|
||||||
map.put("http://schemas.openxmlformats.org/drawingml/2006/main", "a");
|
map.put("http://schemas.openxmlformats.org/drawingml/2006/main", "a");
|
||||||
|
|
Loading…
Reference in New Issue