Skip to content

Commit

Permalink
Fix Java 9 Build
Browse files Browse the repository at this point in the history
Fix Java 9 build by replacing deprecated method.
  • Loading branch information
poutsma committed Jan 24, 2019
1 parent 7cc7004 commit 4732f83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public abstract class StaxUtils {
* @since 5.0
*/
public static XMLInputFactory createDefensiveInputFactory() {
return createDefensiveInputFactory(XMLInputFactory::newFactory);
return createDefensiveInputFactory(XMLInputFactory::newInstance);
}

/**
Expand Down

0 comments on commit 4732f83

Please sign in to comment.