From 64eeea32daa938503d0ea5ca33a6579785738f6d Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 18 Jul 2013 22:46:04 +0000 Subject: [PATCH] Boxing OK here git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504707 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/commons/math3/util/FastMathTestPerformance.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java b/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java index efcd6876b..849e45827 100644 --- a/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java +++ b/src/test/java/org/apache/commons/math3/util/FastMathTestPerformance.java @@ -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";