Reintroduced XMLReaderFactory deprecation markers on JDK 9

Issue: SPR-14486
This commit is contained in:
Juergen Hoeller 2016-07-25 14:12:29 +02:00
parent 01110f678d
commit c97bfd73ad
2 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,7 @@ public class Jaxb2RootElementHttpMessageConverter extends AbstractJaxb2HttpMessa
}
}
@SuppressWarnings("deprecation") // on JDK 9
protected Source processSource(Source source) {
if (source instanceof StreamSource) {
StreamSource streamSource = (StreamSource) source;

View File

@ -187,6 +187,7 @@ public class SourceHttpMessageConverter<T extends Source> extends AbstractHttpMe
}
}
@SuppressWarnings("deprecation") // on JDK 9
private SAXSource readSAXSource(InputStream body) throws IOException {
try {
XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader();