mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
Use String#replace instead of String#replaceAll in tests
See gh-36678
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ class XpathAssertionTests {
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>Test Feed</title>
|
||||
<icon>https://www.example.com/favicon.ico</icon>
|
||||
</feed>""".replaceAll("\n", "\r\n");
|
||||
</feed>""".replace("\n", "\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -232,7 +232,7 @@ class XpathAssertionTests {
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>Test Feed</title>
|
||||
<icon>https://www.example.com/favicon.ico</icon>
|
||||
</feed>""".replaceAll("\n", "\r\n");
|
||||
</feed>""".replace("\n", "\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user