This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new b59c7bf Use String.replace() instead of String.replaceAll().
b59c7bf is described below
commit b59c7bfe249fc2d278f43492daf726b53eb8b28d
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Mar 2 10:36:40 2021 -0500
Use String.replace() instead of String.replaceAll().
---
src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java
b/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java
index f3511a5..8a68720 100644
--- a/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/FastDatePrinterTest.java
@@ -210,8 +210,8 @@ public class FastDatePrinterTest {
fdf = getInstance(pattern);
sdf = new SimpleDateFormat(pattern);
// SDF bug fix starting with Java 7
- assertEquals(sdf.format(date1).replaceAll("2003 03 03 03", "2003 2003
03 2003"), fdf.format(date1));
- assertEquals(sdf.format(date2).replaceAll("2003 03 03 03", "2003 2003
03 2003"), fdf.format(date2));
+ assertEquals(sdf.format(date1).replace("2003 03 03 03", "2003 2003 03
2003"), fdf.format(date1));
+ assertEquals(sdf.format(date2).replace("2003 03 03 03", "2003 2003 03
2003"), fdf.format(date2));
}
@Test