commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1646366 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
Date Thu, 18 Dec 2014 00:01:47 GMT
Author: ecki
Date: Thu Dec 18 00:01:46 2014
New Revision: 1646366

URL: http://svn.apache.org/r1646366
Log:
[tests] Findbugs: fix assertion format

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java?rev=1646366&r1=1646365&r2=1646366&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
Thu Dec 18 00:01:46 2014
@@ -36,7 +36,7 @@ public class LastModifiedTests extends A
         }
         if (!(Math.abs(expected - actual) <= delta))
         {
-            Assert.fail(String.format("%s expected=%d, actual=%d, delta=%d", new Long(expected),
new Long(actual)));
+            Assert.fail(String.format("%s expected=%d, actual=%d, delta=%d", message, Long.valueOf(expected),
Long.valueOf(actual), Long.valueOf(delta)));
         }
     }
 



Mime
View raw message