Skip to content

Commit d82220a

Browse files
committed
Merge some string literals
1 parent 3dd9995 commit d82220a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/apache/commons/io/filefilter/FileFilterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ void testHidden() throws IOException {
745745
@Test
746746
void testMagicNumberFileFilterBytes() throws Exception {
747747
final byte[] classFileMagicNumber = {(byte) 0xCA, (byte) 0xFE, (byte) 0xBA, (byte) 0xBE};
748-
final String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\">\n" + "<element>text</element>";
748+
final String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\">\n<element>text</element>";
749749

750750
final File classAFile = new File(temporaryFolder, "A.class");
751751
final Path classAPath = classAFile.toPath();
@@ -826,7 +826,7 @@ void testMagicNumberFileFilterBytesOffset() throws Exception {
826826
@Test
827827
void testMagicNumberFileFilterString() throws Exception {
828828
final byte[] classFileMagicNumber = {(byte) 0xCA, (byte) 0xFE, (byte) 0xBA, (byte) 0xBE};
829-
final String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\">\n" + "<element>text</element>";
829+
final String xmlFileContent = "<?xml version=\"1.0\" encoding=\"UTF-8\">\n<element>text</element>";
830830
final String xmlMagicNumber = "<?xml version=\"1.0\"";
831831

832832
final File classFileA = new File(temporaryFolder, "A.class");

0 commit comments

Comments
 (0)