You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/02/14 13:59:40 UTC

[commons-rng] 17/17: Fixed checkstyle violation

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

commit 8e1c529efc8617053cc896dd14748b70cf2c107a
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Feb 14 13:58:30 2019 +0000

    Fixed checkstyle violation
---
 .../apache/commons/rng/sampling/distribution/GeometricSampler.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/GeometricSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/GeometricSampler.java
index 2197d4c..757367d 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/GeometricSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/GeometricSampler.java
@@ -123,8 +123,8 @@ public class GeometricSampler implements DiscreteSampler {
     public GeometricSampler(UniformRandomProvider rng, double probabilityOfSuccess) {
         if (probabilityOfSuccess <= 0 || probabilityOfSuccess > 1) {
             throw new IllegalArgumentException(
-                "Probability of success (p) must be in the range [0 < p <= 1]: "
-                    + probabilityOfSuccess);
+                "Probability of success (p) must be in the range [0 < p <= 1]: " +
+                    probabilityOfSuccess);
         }
         delegate = probabilityOfSuccess == 1 ?
             GeometricP1Sampler.INSTANCE :