Skip to content

Commit 4732f83

Browse files
committed
Fix Java 9 Build
Fix Java 9 build by replacing deprecated method.
1 parent 7cc7004 commit 4732f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/util/xml/StaxUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public abstract class StaxUtils {
6363
* @since 5.0
6464
*/
6565
public static XMLInputFactory createDefensiveInputFactory() {
66-
return createDefensiveInputFactory(XMLInputFactory::newFactory);
66+
return createDefensiveInputFactory(XMLInputFactory::newInstance);
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)