From d4aa5c60373fe258213fc7e2a01f557766ce16e5 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 18 Jul 2013 14:06:23 +0000 Subject: [PATCH] Simplify and eliminate boxing warning git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504482 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/math3/random/RandomAdaptorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/math3/random/RandomAdaptorTest.java b/src/test/java/org/apache/commons/math3/random/RandomAdaptorTest.java index aa83838b1..178ebedd3 100644 --- a/src/test/java/org/apache/commons/math3/random/RandomAdaptorTest.java +++ b/src/test/java/org/apache/commons/math3/random/RandomAdaptorTest.java @@ -42,7 +42,7 @@ public class RandomAdaptorTest { byte[] bytes = new byte[] {0}; random.nextBytes(bytes); Assert.assertEquals(0, bytes[0]); - Assert.assertEquals(false, random.nextBoolean()); + Assert.assertFalse(random.nextBoolean()); Assert.assertEquals(0, random.nextDouble(), 0); Assert.assertEquals(0, random.nextFloat(), 0); Assert.assertEquals(0, random.nextGaussian(), 0);