Skip to content

Commit 3dd9995

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/org/apache/commons/io/FileUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3213,7 +3213,7 @@ void testWriteByteArrayToFile_WithOffsetAndLength_WithAppendOptionTrue_ShouldNot
32133213
FileUtils.writeStringToFile(file, "This line was there before you...");
32143214
final byte[] data = "SKIP_THIS_this is brand new data_AND_SKIP_THIS".getBytes(StandardCharsets.UTF_8);
32153215
FileUtils.writeByteArrayToFile(file, data, 10, 22, true);
3216-
final String expected = "This line was there before you..." + "this is brand new data";
3216+
final String expected = "This line was there before you...this is brand new data";
32173217
final String actual = FileUtils.readFileToString(file, StandardCharsets.UTF_8);
32183218
assertEquals(expected, actual);
32193219
}

src/test/java/org/apache/commons/io/IOUtilsMultithreadedSkipTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private void testSkipFullyOnInflaterInputStream(final Supplier<byte[]> baSupplie
110110
final int c = is.read();
111111
assertEquals(expected[skipIndex], c, "failed on seed=" + seed + " iteration=" + iteration);
112112
} catch (final EOFException e) {
113-
assertEquals(expected[skipIndex], is.read(), "failed on " + "seed=" + seed + " iteration=" + iteration);
113+
assertEquals(expected[skipIndex], is.read(), "failed on seed=" + seed + " iteration=" + iteration);
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)