From 7da85f5ef2b2801b9617726fe60b07544cf179b1 Mon Sep 17 00:00:00 2001 From: hxperl Date: Tue, 15 Sep 2026 10:44:26 +0900 Subject: [PATCH] Name the parameter the RandomStringGenerator constructor actually takes The private constructor was changed to take a Builder, but the old five-parameter javadoc stayed behind, so javadoc -Xdoclint:reference -private reports five "@param name not found" errors -- the only ones in the module. Each of the five is already documented on the Builder setter that sets it, so nothing is lost by replacing them with a single "@param builder", matching commons-io. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01WZdW1VZpdhcpg3c5iFioSr --- .../java/org/apache/commons/text/RandomStringGenerator.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/text/RandomStringGenerator.java b/src/main/java/org/apache/commons/text/RandomStringGenerator.java index a82cd93af2..945e40612c 100644 --- a/src/main/java/org/apache/commons/text/RandomStringGenerator.java +++ b/src/main/java/org/apache/commons/text/RandomStringGenerator.java @@ -393,11 +393,7 @@ public static Builder builder() { /** * Constructs the generator. * - * @param minimumCodePoint smallest allowed code point (inclusive). - * @param maximumCodePoint largest allowed code point (inclusive). - * @param inclusivePredicates filters for code points. - * @param random source of randomness. - * @param characterSet list of predefined set of characters. + * @param builder The builder. */ private RandomStringGenerator(final Builder builder) { this.minimumCodePoint = builder.minimumCodePoint;