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 90300a7c13194f78a10ad5ecb6232bc806cb040a Author: Alex Herbert <aherb...@apache.org> AuthorDate: Mon Jul 8 15:28:52 2024 +0100 Reimpliment javadoc from abstract super class Added to avoid warnings when building on Java 21 (which fail the build). JDK 21 expects the {@inheritDoc} to be used with a method with the same scopy. Here the scope is changed to protected. --- .../main/java/org/apache/commons/rng/core/source64/L64X128Mix.java | 6 +++++- .../java/org/apache/commons/rng/core/source64/L64X128StarStar.java | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128Mix.java b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128Mix.java index 2ca27d23..ead06c21 100644 --- a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128Mix.java +++ b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128Mix.java @@ -129,7 +129,11 @@ public class L64X128Mix extends AbstractL64X128 implements SplittableUniformRand return z; } - /** {@inheritDoc} */ + /** + * Create a copy. + * + * @return the copy + */ @Override protected L64X128Mix copy() { // This exists to ensure the jump function performed in the super class returns diff --git a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128StarStar.java b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128StarStar.java index dc56fa2d..f22614fd 100644 --- a/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128StarStar.java +++ b/commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/L64X128StarStar.java @@ -121,7 +121,11 @@ public class L64X128StarStar extends AbstractL64X128 implements SplittableUnifor return z; } - /** {@inheritDoc} */ + /** + * Create a copy. + * + * @return the copy + */ @Override protected L64X128StarStar copy() { // This exists to ensure the jump function performed in the super class returns