Skip to content

Commit 44a2185

Browse files
author
Gary Gregory
committed
Add cleaned up test related to IO-141 and PR #371 by PJ Fanning
See comment #371 (comment)
1 parent db158e5 commit 44a2185

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private Path createTempSymlinkedRelativeDir() throws IOException {
261261
return symlinkDir;
262262
}
263263

264-
private Set<String> getFilePathSet(List<File> files) {
264+
private Set<String> getFilePathSet(final List<File> files) {
265265
return files.stream().map(f -> {
266266
try {
267267
return f.getCanonicalPath();
@@ -1041,8 +1041,8 @@ public void testCopyDirectoryWithPotentialFalsePartialMatch() throws IOException
10411041
assertEquals(expectedSize, FileUtils.sizeOfDirectory(grandParentDir));
10421042
assertTrue(expectedCount > 0, "Count > 0");
10431043
assertTrue(expectedSize > 0, "Size > 0");
1044-
Set<String> initFilePaths = getFilePathSet(initFiles);
1045-
Set<String> newFilePaths = getFilePathSet(latestFiles);
1044+
final Set<String> initFilePaths = getFilePathSet(initFiles);
1045+
final Set<String> newFilePaths = getFilePathSet(latestFiles);
10461046
newFilePaths.removeAll(initFilePaths);
10471047
assertEquals(parFiles.size(), newFilePaths.size());
10481048
}
@@ -3068,7 +3068,7 @@ public void testWriteStringToFileWithNullStringCharset() throws Exception {
30683068
final byte[] text = "Hello /u1234".getBytes();
30693069
TestUtils.assertEqualContent(text, file);
30703070
}
3071-
3071+
30723072
@Test
30733073
public void testWriteWithEncoding_WithAppendOptionFalse_ShouldDeletePreviousFileLines() throws Exception {
30743074
final File file = TestUtils.newFile(tempDirFile, "lines.txt");

0 commit comments

Comments
 (0)