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 a0cb807903dc7e410d5e581aefdf194555dd55a2 Author: Alex Herbert <aherb...@apache.org> AuthorDate: Wed Jul 3 15:08:41 2024 +0100 PMD fix: remove explicit scope --- .../main/java/org/apache/commons/rng/sampling/PermutationSampler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/PermutationSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/PermutationSampler.java index 6805a89f..4fb8d1d1 100644 --- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/PermutationSampler.java +++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/PermutationSampler.java @@ -72,7 +72,7 @@ public class PermutationSampler implements SharedStateObjectSampler<int[]> { // 2. If the argument RNG is an exact match for the RNG in the source // then the output sequence will differ unless the domain is currently // in natural order. - domain = PermutationSampler.natural(source.domain.length); + domain = natural(source.domain.length); size = source.size; this.rng = rng; }