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-numbers.git

commit 5d9315e761df51d0c4961ec1168cacd45f897a68
Author: Alex Herbert <[email protected]>
AuthorDate: Tue Aug 25 13:22:27 2026 +0100

    PMD fix: Remove public keyword from package-private class
---
 .../src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java    | 2 +-
 .../src/main/java/org/apache/commons/numbers/gamma/LogGamma1p.java      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
 
b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
index a9cba0fd..dac3a486 100644
--- 
a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
+++ 
b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/InvGamma1pm1.java
@@ -113,7 +113,7 @@ final class InvGamma1pm1 {
      * @return \( \frac{1}{\Gamma(1 + x)} - 1 \)
      * @throws IllegalArgumentException if {@code x < -0.5} or {@code x > 1.5}
      */
-    public static double value(final double x) {
+    static double value(final double x) {
         if (x < -0.5 || x > 1.5) {
             throw new GammaException(GammaException.OUT_OF_RANGE, x, -0.5, 
1.5);
         }
diff --git 
a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma1p.java
 
b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma1p.java
index 6940edaf..691bd0cc 100644
--- 
a/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma1p.java
+++ 
b/commons-numbers-gamma/src/main/java/org/apache/commons/numbers/gamma/LogGamma1p.java
@@ -37,7 +37,7 @@ final class LogGamma1p {
      * @return \( \ln \Gamma(1 + x) \)
      * @throws IllegalArgumentException if {@code x < -0.5} or {@code x > 1.5}.
      */
-    public static double value(final double x) {
+    static double value(final double x) {
         if (x < -0.5 || x > 1.5) {
             throw new GammaException(GammaException.OUT_OF_RANGE, x, -0.5, 
1.5);
         }

Reply via email to