Skip to content

Commit 2d3f67c

Browse files
author
Gary Gregory
committed
Millis are longs.
1 parent c18ca7b commit 2d3f67c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ public class FileUtilsTestCase {
109109
private File testFile1;
110110
private File testFile2;
111111

112-
private int testFile1Size;
113-
private int testFile2Size;
112+
private long testFile1Size;
113+
private long testFile2Size;
114114

115115
@BeforeEach
116116
public void setUp() throws Exception {
117117
testFile1 = new File(temporaryFolder, "file1-test.txt");
118118
testFile2 = new File(temporaryFolder, "file1a-test.txt");
119119

120-
testFile1Size = (int) testFile1.length();
121-
testFile2Size = (int) testFile2.length();
120+
testFile1Size = testFile1.length();
121+
testFile2Size = testFile2.length();
122122
if (!testFile1.getParentFile().exists()) {
123123
throw new IOException("Cannot create file " + testFile1
124124
+ " as the parent directory does not exist");

0 commit comments

Comments
 (0)