Skip to content

Commit f5a310a

Browse files
committed
Polishing (backported from 3.2.x)
1 parent 2a52dec commit f5a310a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-test/src/main/java/org/springframework/test/util/XmlExpectationsHelper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
*/
4141
public class XmlExpectationsHelper {
4242

43-
4443
/**
4544
* Parse the content as {@link Node} and apply a {@link Matcher}.
4645
*/
@@ -54,8 +53,7 @@ private Document parseXmlString(String xml) throws Exception {
5453
factory.setNamespaceAware(true);
5554
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
5655
InputSource inputSource = new InputSource(new StringReader(xml));
57-
Document document = documentBuilder.parse(inputSource);
58-
return document;
56+
return documentBuilder.parse(inputSource);
5957
}
6058

6159
/**
@@ -79,7 +77,6 @@ public void assertSource(String content, Matcher<? super Source> matcher) throws
7977
* @see org.springframework.test.web.servlet.result.MockMvcResultMatchers#xpath(String, Map, Object...)
8078
*/
8179
public void assertXmlEqual(String expected, String actual) throws Exception {
82-
8380
XMLUnit.setIgnoreWhitespace(true);
8481
XMLUnit.setIgnoreComments(true);
8582
XMLUnit.setIgnoreAttributeOrder(true);

0 commit comments

Comments
 (0)