Boxing OK here

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-07-18 22:46:04 +00:00
parent 4c8d5034c1
commit 64eeea32da
1 changed files with 3 additions and 1 deletions

View File

@ -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";