This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit baba8db4e583996bb2d1cda2b8bb9cb8daa5ae18
Author: Alex Herbert <[email protected]>
AuthorDate: Sat Aug 22 13:17:18 2026 +0100

    Change method scope in private class to protected
---
 .../java/org/apache/commons/rng/sampling/shape/LineSampler.java   | 8 ++++----
 .../org/apache/commons/rng/sampling/shape/TriangleSampler.java    | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/LineSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/LineSampler.java
index 086e5469..830b83ba 100644
--- 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/LineSampler.java
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/LineSampler.java
@@ -83,7 +83,7 @@ public abstract class LineSampler implements 
SharedStateObjectSampler<double[]>
         }
 
         @Override
-        public double[] createSample(double p1mu, double u) {
+        protected double[] createSample(double p1mu, double u) {
             return new double[] {p1mu * ax + u * bx};
         }
 
@@ -133,7 +133,7 @@ public abstract class LineSampler implements 
SharedStateObjectSampler<double[]>
         }
 
         @Override
-        public double[] createSample(double p1mu, double u) {
+        protected double[] createSample(double p1mu, double u) {
             return new double[] {p1mu * ax + u * bx,
                                  p1mu * ay + u * by};
         }
@@ -192,7 +192,7 @@ public abstract class LineSampler implements 
SharedStateObjectSampler<double[]>
         }
 
         @Override
-        public double[] createSample(double p1mu, double u) {
+        protected double[] createSample(double p1mu, double u) {
             return new double[] {p1mu * ax + u * bx,
                                  p1mu * ay + u * by,
                                  p1mu * az + u * bz};
@@ -237,7 +237,7 @@ public abstract class LineSampler implements 
SharedStateObjectSampler<double[]>
         }
 
         @Override
-        public double[] createSample(double p1mu, double u) {
+        protected double[] createSample(double p1mu, double u) {
             final double[] x = new double[a.length];
             for (int i = 0; i < x.length; i++) {
                 x[i] = p1mu * a[i] + u * b[i];
diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/TriangleSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/TriangleSampler.java
index 660bfabb..ce3ed858 100644
--- 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/TriangleSampler.java
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/shape/TriangleSampler.java
@@ -127,7 +127,7 @@ public abstract class TriangleSampler implements 
SharedStateObjectSampler<double
         }
 
         @Override
-        public double[] createSample(double p1msmt, double s, double t) {
+        protected double[] createSample(double p1msmt, double s, double t) {
             return new double[] {p1msmt * ax + s * bx + t * cx,
                                  p1msmt * ay + s * by + t * cy};
         }
@@ -199,7 +199,7 @@ public abstract class TriangleSampler implements 
SharedStateObjectSampler<double
         }
 
         @Override
-        public double[] createSample(double p1msmt, double s, double t) {
+        protected double[] createSample(double p1msmt, double s, double t) {
             return new double[] {p1msmt * ax + s * bx + t * cx,
                                  p1msmt * ay + s * by + t * cy,
                                  p1msmt * az + s * bz + t * cz};
@@ -249,7 +249,7 @@ public abstract class TriangleSampler implements 
SharedStateObjectSampler<double
         }
 
         @Override
-        public double[] createSample(double p1msmt, double s, double t) {
+        protected double[] createSample(double p1msmt, double s, double t) {
             final double[] x = new double[a.length];
             for (int i = 0; i < x.length; i++) {
                 x[i] = p1msmt * a[i] + s * b[i] + t * c[i];

Reply via email to