Exception message (minor change).
Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/98e6bd11 Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/98e6bd11 Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/98e6bd11 Branch: refs/heads/master Commit: 98e6bd1168ca1ae7f960521c98cf349720a5ef7e Parents: 106d17c Author: Gilles <er...@apache.org> Authored: Sun Nov 20 02:42:05 2016 +0100 Committer: Gilles <er...@apache.org> Committed: Sun Nov 20 02:42:05 2016 +0100 ---------------------------------------------------------------------- .../rng/sampling/distribution/RejectionInversionZipfSampler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-rng/blob/98e6bd11/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/RejectionInversionZipfSampler.java ---------------------------------------------------------------------- diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/RejectionInversionZipfSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/RejectionInversionZipfSampler.java index 26e1c64..faa0311 100644 --- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/RejectionInversionZipfSampler.java +++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/RejectionInversionZipfSampler.java @@ -50,10 +50,10 @@ public class RejectionInversionZipfSampler double exponent) { super(rng); if (numberOfElements <= 0) { - throw new IllegalArgumentException(numberOfElements + " <= " + 0); + throw new IllegalArgumentException("number of elements is not strictly positive: " + numberOfElements); } if (exponent <= 0) { - throw new IllegalArgumentException(exponent + " <= " + 0); + throw new IllegalArgumentException("exponent is not strictly positive: " + exponent); } this.numberOfElements = numberOfElements;