]> source.dussan.org Git - poi.git/commitdiff
Adapt to new XmlBeans changes of r1881383
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 1 Sep 2020 22:28:31 +0000 (22:28 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 1 Sep 2020 22:28:31 +0000 (22:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881384 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java

index 3805eb95b355106458a0872dd6d378e950a29168..f1d59a14bb578f8c5719a498229882f65d808970 100644 (file)
@@ -91,9 +91,9 @@ public class SharedStringsTable extends POIXMLDocumentPart implements SharedStri
 
     private static final XmlOptions options = new XmlOptions();
     static {
-        options.put( XmlOptions.SAVE_INNER );
-        options.put( XmlOptions.SAVE_AGGRESSIVE_NAMESPACES );
-        options.put( XmlOptions.SAVE_USE_DEFAULT_NAMESPACE );
+        options.setSaveInner();
+        options.setSaveAggressiveNamespaces();
+        options.setUseDefaultNamespace(true);
         options.setSaveImplicitNamespaces(Collections.singletonMap("", NS_SPREADSHEETML));
     }