git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842683 13f79535-47bb-0310-9956-ffa450edef68tags/REL_4_0_1
@@ -55,7 +55,8 @@ public final class StaxHelper { | |||
* Creates a new StAX XMLEventFactory, with sensible defaults | |||
*/ | |||
public static XMLEventFactory newXMLEventFactory() { | |||
return XMLEventFactory.newFactory(); | |||
// this method seems safer on Android than getFactory() | |||
return XMLEventFactory.newInstance(); | |||
} | |||
private static void trySetProperty(XMLInputFactory factory, String feature, boolean flag) { |