poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fannin...@apache.org
Subject svn commit: r1842683 - /poi/trunk/src/java/org/apache/poi/util/StaxHelper.java
Date Wed, 03 Oct 2018 07:36:13 GMT
Author: fanningpj
Date: Wed Oct  3 07:36:12 2018
New Revision: 1842683

URL: http://svn.apache.org/viewvc?rev=1842683&view=rev
Log:
change method to get XMLEventFactory due to issues seen on Android SDK

Modified:
    poi/trunk/src/java/org/apache/poi/util/StaxHelper.java

Modified: poi/trunk/src/java/org/apache/poi/util/StaxHelper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/util/StaxHelper.java?rev=1842683&r1=1842682&r2=1842683&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/util/StaxHelper.java (original)
+++ poi/trunk/src/java/org/apache/poi/util/StaxHelper.java Wed Oct  3 07:36:12 2018
@@ -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)
{



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message