commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1722481 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Date Fri, 01 Jan 2016 01:42:04 GMT
Author: dbrosius
Date: Fri Jan  1 01:42:04 2016
New Revision: 1722481

URL: http://svn.apache.org/viewvc?rev=1722481&view=rev
Log:
use long math when calculating a long

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1722481&r1=1722480&r2=1722481&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java Fri Jan  1
01:42:04 2016
@@ -1724,7 +1724,7 @@ public class FileUtils {
      * @throws NullPointerException if the file is {@code null}
      */
     public static boolean waitFor(final File file, final int seconds) {
-        long finishAt = System.currentTimeMillis() + (seconds * 1000);
+        long finishAt = System.currentTimeMillis() + (seconds * 1000L);
         boolean wasInterrupted = false;
         try {
             while (!file.exists()) {



Mime
View raw message