You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/07/19 00:46:04 UTC

svn commit: r1504707 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java

Author: sebb
Date: Thu Jul 18 22:46:04 2013
New Revision: 1504707

URL: http://svn.apache.org/r1504707
Log:
Boxing OK here

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java?rev=1504707&r1=1504706&r2=1504707&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java Thu Jul 18 22:46:04 2013
@@ -17,7 +17,6 @@
 package org.apache.commons.math3.util;
 
 import org.apache.commons.math3.PerfTestUtils;
-
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.Assert;
@@ -40,6 +39,7 @@ public class FastMathTestPerformance {
     // Detail format
     private static final String FMT_DTL = "%-5s %6d %6.1f %6d %6.4f %6d %6.4f";
 
+    @SuppressWarnings("boxing")
     @BeforeClass
     public static void header() {
         System.out.println(String.format(FMT_HDR,
@@ -51,6 +51,7 @@ public class FastMathTestPerformance {
                 ));
     }
 
+    @SuppressWarnings("boxing")
     private static void report(String name, long strictMathTime, long fastMathTime, long mathTime) {
         long unitTime = strictMathTime;
         System.out.println(String.format(FMT_DTL,
@@ -612,6 +613,7 @@ public class FastMathTestPerformance {
         Assert.assertTrue(!Double.isNaN(x));
     }
 
+    @SuppressWarnings("boxing")
     @Test
     public void testSimpleBenchmark() {
         final String SM = "StrictMath";