You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2024/11/18 16:38:26 UTC

Re: (commons-validator) 11/11: Fixed Javadoc errors

Please revert "{@link java.lang.String}". The java.lang package is
automatically in scope, just like in Java sources.

I don't use Java 8 to build because it's EOL and doesn't generate the
search box. FWIW, all release sites I've built recently were done with Java
17.

Gary

On Mon, Nov 18, 2024, 7:53 AM <eb...@apache.org> wrote:

> This is an automated email from the ASF dual-hosted git repository.
>
> ebourg pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/commons-validator.git
>
> commit cdc0125b8d7c9af0dcc557de853c2ff2a0a436ee
> Author: Emmanuel Bourg <eb...@apache.org>
> AuthorDate: Mon Nov 18 13:32:14 2024 +0100
>
>     Fixed Javadoc errors
> ---
>  src/main/java/org/apache/commons/validator/ValidatorAction.java       | 2
> +-
>  src/main/java/org/apache/commons/validator/routines/package-info.java | 4
> ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git
> a/src/main/java/org/apache/commons/validator/ValidatorAction.java
> b/src/main/java/org/apache/commons/validator/ValidatorAction.java
> index 315499fd..d08edb8b 100644
> --- a/src/main/java/org/apache/commons/validator/ValidatorAction.java
> +++ b/src/main/java/org/apache/commons/validator/ValidatorAction.java
> @@ -555,7 +555,7 @@ public class ValidatorAction implements Serializable {
>       * The search order is described in the documentation for {@link
> ClassLoader#getResource(String)}.
>       * </p>
>       *
> -     * @param name The resource name
> +     * @param javaScriptFileName The resource name
>       * @return An input stream for reading the resource, or {@code null}
> if the resource could not be found
>       */
>      private InputStream openInputStream(final String javaScriptFileName,
> final ClassLoader classLoader) {
> diff --git
> a/src/main/java/org/apache/commons/validator/routines/package-info.java
> b/src/main/java/org/apache/commons/validator/routines/package-info.java
> index c5d4ff11..a0d8239c 100644
> --- a/src/main/java/org/apache/commons/validator/routines/package-info.java
> +++ b/src/main/java/org/apache/commons/validator/routines/package-info.java
> @@ -411,10 +411,10 @@
>   * <ul>
>   * <li>{@code isValid()} methods return true/false to indicate
>   * whether validation was successful.</li>
> - * <li>{@code validate()} methods return a {@link String}
> + * <li>{@code validate()} methods return a {@link java.lang.String}
>   * value of the matched <em>groups</em> aggregated together or
>   * {@code null} if invalid.</li>
> - * <li>{@code match()} methods return a {@link String} array
> + * <li>{@code match()} methods return a {@link java.lang.String} array
>   * of the matched <em>groups</em> or {@code null} if invalid.</li>
>   * </ul>
>   * </li>
>
>

Re: (commons-validator) 11/11: Fixed Javadoc errors

Posted by Emmanuel Bourg <eb...@apache.org>.
Le 18/11/2024 à 17:38, Gary Gregory a écrit :
> Please revert "{@link java.lang.String}". The java.lang package is
> automatically in scope, just like in Java sources.
> 
> I don't use Java 8 to build because it's EOL and doesn't generate the
> search box. FWIW, all release sites I've built recently were done with Java
> 17.

"{@link String}" triggers a warning in my IDE.

If the warning goes away with Java 17 then we'll remove it when the 
minimum JDK requirement for Commons Validator is upgraded.

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org