This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b420fe  Fix build on Java 1.6 for LargeMeanPoissonSamplerTest
6b420fe is described below

commit 6b420fe431c9b9c799fb66f2e91ade8686df4024
Author: aherbert <[email protected]>
AuthorDate: Mon Apr 15 17:08:47 2019 +0100

    Fix build on Java 1.6 for LargeMeanPoissonSamplerTest
---
 .../commons/rng/sampling/distribution/LargeMeanPoissonSamplerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSamplerTest.java
 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSamplerTest.java
index b7b2271..13b4173 100644
--- 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSamplerTest.java
+++ 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/LargeMeanPoissonSamplerTest.java
@@ -50,7 +50,7 @@ public class LargeMeanPoissonSamplerTest {
     public void testConstructorThrowsWithMeanBelow1() {
         final RestorableUniformRandomProvider rng =
                 RandomSource.create(RandomSource.SPLIT_MIX_64);
-        final double mean = Math.nextDown(1);
+        final double mean = Math.nextAfter(1, -1);
         @SuppressWarnings("unused")
         LargeMeanPoissonSampler sampler = new LargeMeanPoissonSampler(rng, 
mean);
     }

Reply via email to