Skip to content

Commit 32ff6b4

Browse files
committed
Merge some string literals
1 parent f7b8d46 commit 32ff6b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void testEscapeJava() throws IOException {
299299
assertEscapeJava("\\uABCD", "\uabcd", "Should use capitalized Unicode hex");
300300

301301
assertEscapeJava("He didn't say, \\\"stop!\\\"", "He didn't say, \"stop!\"");
302-
assertEscapeJava("This space is non-breaking:" + "\\u00A0", "This space is non-breaking:\u00a0", "non-breaking space");
302+
assertEscapeJava("This space is non-breaking:\\u00A0", "This space is non-breaking:\u00a0", "non-breaking space");
303303
assertEscapeJava("\\uABCD\\u1234\\u012C", "\uABCD\u1234\u012C");
304304
}
305305

src/test/java/org/apache/commons/text/StringSubstitutorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void testReplaceInVariable() throws IOException {
556556
values.put("species", "1");
557557
assertEqualsCharSeq("The fox jumps over the lazy dog.", replace(sub, "The ${animal.${species}} jumps over the ${target}."));
558558
assertEqualsCharSeq("The fox jumps over the lazy dog.",
559-
replace(sub, "The ${unknown.animal.${unknown.species:-1}:-fox} " + "jumps over the ${unknow.target:-lazy dog}."));
559+
replace(sub, "The ${unknown.animal.${unknown.species:-1}:-fox} jumps over the ${unknow.target:-lazy dog}."));
560560
}
561561

562562
/**
@@ -1031,7 +1031,7 @@ void testStaticReplaceSystemProperties() {
10311031
buf.append(", your home directory is ");
10321032
buf.append(SystemProperties.getUserHome()).append('.');
10331033
assertEqualsCharSeq(buf.toString(),
1034-
StringSubstitutor.replaceSystemProperties("Hi ${user.name}, you are " + "working with ${os.name}, your home " + "directory is ${user.home}."));
1034+
StringSubstitutor.replaceSystemProperties("Hi ${user.name}, you are " + "working with ${os.name}, your home directory is ${user.home}."));
10351035
}
10361036

10371037
/**

src/test/java/org/apache/commons/text/lookup/XmlStringLookupTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void testBadXPath() {
5757

5858
@Test
5959
void testMissingXPath() {
60-
assertThrows(IllegalArgumentException.class, () -> XmlStringLookup.INSTANCE.apply(DOC_RELATIVE + ":" + "!JUNK!"));
60+
assertThrows(IllegalArgumentException.class, () -> XmlStringLookup.INSTANCE.apply(DOC_RELATIVE + ":!JUNK!"));
6161
}
6262

6363
@Test

0 commit comments

Comments
 (0)