From 36c829386b72ee730497b8b0833044bcd39be5db Mon Sep 17 00:00:00 2001 From: Tasuku Nakagawa <38446259+T45K@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:59:26 +0900 Subject: [PATCH] Use an import instead of FQCN in StaxEventXMLReader Closes gh-26875 --- .../java/org/springframework/util/xml/StaxEventXMLReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java b/spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java index 3ec0b1b630..0b270dc2ee 100644 --- a/spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java +++ b/spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java @@ -292,7 +292,7 @@ class StaxEventXMLReader extends AbstractStaxXMLReader { private void handleDtd(DTD dtd) throws SAXException { if (getLexicalHandler() != null) { - javax.xml.stream.Location location = dtd.getLocation(); + Location location = dtd.getLocation(); getLexicalHandler().startDTD(null, location.getPublicId(), location.getSystemId()); } if (getLexicalHandler() != null) {