Reintroduced XMLReaderFactory deprecation markers on JDK 9
Issue: SPR-14486
This commit is contained in:
parent
01110f678d
commit
c97bfd73ad
|
|
@ -153,6 +153,7 @@ public class Jaxb2RootElementHttpMessageConverter extends AbstractJaxb2HttpMessa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation") // on JDK 9
|
||||||
protected Source processSource(Source source) {
|
protected Source processSource(Source source) {
|
||||||
if (source instanceof StreamSource) {
|
if (source instanceof StreamSource) {
|
||||||
StreamSource streamSource = (StreamSource) source;
|
StreamSource streamSource = (StreamSource) source;
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ public class SourceHttpMessageConverter<T extends Source> extends AbstractHttpMe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation") // on JDK 9
|
||||||
private SAXSource readSAXSource(InputStream body) throws IOException {
|
private SAXSource readSAXSource(InputStream body) throws IOException {
|
||||||
try {
|
try {
|
||||||
XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
|
XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue