File tree 1 file changed +4
-4
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/util
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ public static XMLInputFactory defaultInputFactory(ClassLoader cl) {
126
126
// 05-Jul-2021, tatu: as per [dataformat-xml#483], specify ClassLoader
127
127
try {
128
128
return XMLInputFactory .newFactory (XMLInputFactory .class .getName (), cl );
129
- } catch (FactoryConfigurationError e ) {
129
+ } catch (FactoryConfigurationError | NoSuchMethodError e ) {
130
130
// 24-Oct-2022, tatu: as per [dataformat-xml#550] need extra care
131
- return XMLInputFactory .newFactory ();
131
+ return XMLInputFactory .newInstance ();
132
132
}
133
133
}
134
134
@@ -139,9 +139,9 @@ public static XMLOutputFactory defaultOutputFactory(ClassLoader cl) {
139
139
// 05-Jul-2021, tatu: as per [dataformat-xml#483], specify ClassLoader
140
140
try {
141
141
return XMLOutputFactory .newFactory (XMLOutputFactory .class .getName (), cl );
142
- } catch (FactoryConfigurationError e ) {
142
+ } catch (FactoryConfigurationError | NoSuchMethodError e ) {
143
143
// 24-Oct-2022, tatu: as per [dataformat-xml#550] need extra care
144
- return XMLOutputFactory .newFactory ();
144
+ return XMLOutputFactory .newInstance ();
145
145
}
146
146
}
147
147
You can’t perform that action at this time.
0 commit comments