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 2021/08/08 22:00:37 UTC

[commons-rng] 02/02: Sonar fix: Eliminate false-positive of commented-out code.

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 93b8e717d49c7e59d300ef199b02cb62b4852c0a
Author: aherbert <ah...@apache.org>
AuthorDate: Sun Aug 8 23:00:32 2021 +0100

    Sonar fix: Eliminate false-positive of commented-out code.
---
 .../org/apache/commons/rng/sampling/distribution/ZigguratSampler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ZigguratSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ZigguratSampler.java
index bdd3495..3edef7a 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ZigguratSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ZigguratSampler.java
@@ -682,7 +682,7 @@ public abstract class ZigguratSampler implements SharedStateContinuousSampler {
             }
 
             // Recycle bits then advance RNG:
-            // u1 = RANDOM_INT63();
+            // u1 = RANDOM_INT63()
             long u1 = xx & MAX_INT64;
             // Another squashed, recyclable bit
             // double sign_bit = u1 & 0x100 ? 1. : -1.