Fix Java 9 Build
Fix Java 9 build by replacing deprecated method.
This commit is contained in:
parent
7cc700435b
commit
4732f83d70
|
@ -63,7 +63,7 @@ public abstract class StaxUtils {
|
|||
* @since 5.0
|
||||
*/
|
||||
public static XMLInputFactory createDefensiveInputFactory() {
|
||||
return createDefensiveInputFactory(XMLInputFactory::newFactory);
|
||||
return createDefensiveInputFactory(XMLInputFactory::newInstance);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue