Skip to content

Commit c97bfd7

Browse files
committed
Reintroduced XMLReaderFactory deprecation markers on JDK 9
Issue: SPR-14486
1 parent 01110f6 commit c97bfd7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spring-web/src/main/java/org/springframework/http/converter/xml/Jaxb2RootElementHttpMessageConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ protected Object readFromSource(Class<?> clazz, HttpHeaders headers, Source sour
153153
}
154154
}
155155

156+
@SuppressWarnings("deprecation") // on JDK 9
156157
protected Source processSource(Source source) {
157158
if (source instanceof StreamSource) {
158159
StreamSource streamSource = (StreamSource) source;

spring-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ private DOMSource readDOMSource(InputStream body) throws IOException {
187187
}
188188
}
189189

190+
@SuppressWarnings("deprecation") // on JDK 9
190191
private SAXSource readSAXSource(InputStream body) throws IOException {
191192
try {
192193
XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader();

0 commit comments

Comments
 (0)