mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Use XMLInputFactory.newInstance() instead of newFactory()
As newFactory() is errornously marked as deprecated in Java 9 or higher. See also https://bugs.openjdk.java.net/browse/JDK-8183519
This commit is contained in:
parent
91ec6cc955
commit
947244b704
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ import org.jivesoftware.smack.xml.XmlPullParserFactory;
|
||||||
|
|
||||||
public class StaxXmlPullParserFactory implements XmlPullParserFactory {
|
public class StaxXmlPullParserFactory implements XmlPullParserFactory {
|
||||||
|
|
||||||
private static final XMLInputFactory xmlInputFactory = XMLInputFactory.newFactory();
|
private static final XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// XPP3 appears to coalescing hence we need to configure our StAX parser to also return all available text on
|
// XPP3 appears to coalescing hence we need to configure our StAX parser to also return all available text on
|
||||||
|
|
Loading…
Reference in a new issue