Skip to content

Commit b2da444

Browse files
committed
use long math when calculating a long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1722481 13f79535-47bb-0310-9956-ffa450edef68
1 parent 284886b commit b2da444

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ private static File[] verifiedListFiles(File directory) throws IOException {
17241724
* @throws NullPointerException if the file is {@code null}
17251725
*/
17261726
public static boolean waitFor(final File file, final int seconds) {
1727-
long finishAt = System.currentTimeMillis() + (seconds * 1000);
1727+
long finishAt = System.currentTimeMillis() + (seconds * 1000L);
17281728
boolean wasInterrupted = false;
17291729
try {
17301730
while (!file.exists()) {

0 commit comments

Comments
 (0)