diff options
author | PJ Fanning <fanningpj@apache.org> | 2018-10-03 07:36:12 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2018-10-03 07:36:12 +0000 |
commit | 5b890cb228ea85f1748862b0df3cbd626ea6df7e (patch) | |
tree | 85875265cd167ad11d9108314ee8f2d218daffe1 /src/java/org/apache/poi/util | |
parent | 09f441ca462ad8a25ee94b829dec3aa94ea6dd36 (diff) | |
download | poi-5b890cb228ea85f1748862b0df3cbd626ea6df7e.tar.gz poi-5b890cb228ea85f1748862b0df3cbd626ea6df7e.zip |
change method to get XMLEventFactory due to issues seen on Android SDK
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842683 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util')
-rw-r--r-- | src/java/org/apache/poi/util/StaxHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/util/StaxHelper.java b/src/java/org/apache/poi/util/StaxHelper.java index 8c0d284304..58a4959699 100644 --- a/src/java/org/apache/poi/util/StaxHelper.java +++ b/src/java/org/apache/poi/util/StaxHelper.java @@ -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) { |