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 0c694751b43048848d94b9f2e1b758f76b3cffe1
Author: Alex Herbert <[email protected]>
AuthorDate: Tue Apr 14 14:49:49 2026 +0100

    Remove public member from package private class
    
    Does not break binary compatibility. Only package members will have
    access to this class and the public scope is redundant.
    
    Identified by PMD rule: PublicMemberInNonPublicType
---
 .../src/main/java/org/apache/commons/rng/core/source64/TwoCmres.java  | 4 ++--
 .../org/apache/commons/rng/sampling/distribution/InternalGamma.java   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/TwoCmres.java
 
b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/TwoCmres.java
index 8d044937..a9e97d19 100644
--- 
a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/TwoCmres.java
+++ 
b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/TwoCmres.java
@@ -198,14 +198,14 @@ public class TwoCmres extends LongProvider {
         /**
          * @return the multiplier.
          */
-        public long getMultiply() {
+        long getMultiply() {
             return multiply;
         }
 
         /**
          * @return the cycle start.
          */
-        public int getStart() {
+        int getStart() {
             return start;
         }
 
diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InternalGamma.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InternalGamma.java
index 7ffece2a..732a06f6 100644
--- 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InternalGamma.java
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/InternalGamma.java
@@ -31,7 +31,7 @@ final class InternalGamma { // Class is package-private on 
purpose; do not make
     /**
      * Constant \( g = \frac{607}{128} \) in the Lanczos approximation.
      */
-    public static final double LANCZOS_G = 607.0 / 128.0;
+    static final double LANCZOS_G = 607.0 / 128.0;
 
     /** Lanczos coefficients. */
     private static final double[] LANCZOS_COEFFICIENTS = {
@@ -82,7 +82,7 @@ final class InternalGamma { // Class is package-private on 
purpose; do not make
      * @param x Argument.
      * @return \( \ln \Gamma(x) \), or {@code NaN} if {@code x <= 0}.
      */
-    public static double logGamma(double x) {
+    static double logGamma(double x) {
         // Stripped-down version of the same method defined in "Commons Math":
         // Unused "if" branches (for when x < 8) have been removed here since
         // this method is only used (by class "InternalUtils") in order to

Reply via email to