This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven.git
commit 9fd42d6c851de3d539e24de0425c1932a73ea866 Author: Martin Desruisseaux <[email protected]> AuthorDate: Sat Oct 25 15:24:57 2025 +0200 Remove some trailing dot after `{@return}` Javadoc tag. A dot is already automatically added by Javadoc, so these trailing dots were causing dots to appear twice in the generated Javadoc. --- .../main/java/org/apache/maven/api/SourceRoot.java | 22 +++++++++++----------- .../org/apache/maven/impl/DefaultSourceRoot.java | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java b/api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java index 4a4aa4f561..6904b76d84 100644 --- a/api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java +++ b/api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java @@ -35,7 +35,7 @@ */ public interface SourceRoot { /** - * {@return the root directory where the sources are stored}. + * {@return the root directory where the sources are stored} * The path is relative to the <abbr>POM</abbr> file. * * <h4>Default implementation</h4> @@ -62,7 +62,7 @@ default Path directory() { } /** - * {@return the list of patterns for the files to include}. + * {@return the list of patterns for the files to include} * The path separator is {@code /} on all platforms, including Windows. * The prefix before the {@code :} character, if present and longer than 1 character, is the syntax. * If no syntax is specified, or if its length is 1 character (interpreted as a Windows drive), @@ -78,7 +78,7 @@ default List<String> includes() { } /** - * {@return the list of patterns for the files to exclude}. + * {@return the list of patterns for the files to exclude} * The exclusions are applied after the inclusions. * The default implementation returns an empty list. */ @@ -87,7 +87,7 @@ default List<String> excludes() { } /** - * {@return a matcher combining the include and exclude patterns}. + * {@return a matcher combining the include and exclude patterns} * If the user did not specify any includes, the given {@code defaultIncludes} are used. * These defaults depend on the plugin. * For example, the default include of the Java compiler plugin is <code>"**/*.java"</code>. @@ -103,7 +103,7 @@ default List<String> excludes() { PathMatcher matcher(Collection<String> defaultIncludes, boolean useDefaultExcludes); /** - * {@return in which context the source files will be used}. + * {@return in which context the source files will be used} * Not to be confused with dependency scope. * The default value is {@code "main"}. * @@ -114,7 +114,7 @@ default ProjectScope scope() { } /** - * {@return the language of the source files}. + * {@return the language of the source files} * The default value is {@code "java"}. * * @see Language#JAVA_FAMILY @@ -124,7 +124,7 @@ default Language language() { } /** - * {@return the name of the Java module (or other language-specific module) which is built by the sources}. + * {@return the name of the Java module (or other language-specific module) which is built by the sources} * The default value is empty. */ default Optional<String> module() { @@ -132,7 +132,7 @@ default Optional<String> module() { } /** - * {@return the version of the platform where the code will be executed}. + * {@return the version of the platform where the code will be executed} * In a Java environment, this is the value of the {@code --release} compiler option. * The default value is empty. */ @@ -141,7 +141,7 @@ default Optional<Version> targetVersion() { } /** - * {@return an explicit target path, overriding the default value}. + * {@return an explicit target path, overriding the default value} * When a target path is explicitly specified, the values of the {@link #module()} and {@link #targetVersion()} * elements are not used for inferring the path (they are still used as compiler options however). * It means that for scripts and resources, the files below the path specified by {@link #directory()} @@ -152,7 +152,7 @@ default Optional<Path> targetPath() { } /** - * {@return whether resources are filtered to replace tokens with parameterized values}. + * {@return whether resources are filtered to replace tokens with parameterized values} * The default value is {@code false}. */ default boolean stringFiltering() { @@ -160,7 +160,7 @@ default boolean stringFiltering() { } /** - * {@return whether the directory described by this source element should be included in the build}. + * {@return whether the directory described by this source element should be included in the build} * The default value is {@code true}. */ default boolean enabled() { diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSourceRoot.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSourceRoot.java index ec35428a51..dad9d3cdae 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSourceRoot.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultSourceRoot.java @@ -208,7 +208,7 @@ public List<String> excludes() { } /** - * {@return a matcher combining the include and exclude patterns}. + * {@return a matcher combining the include and exclude patterns} * * @param defaultIncludes the default includes if unspecified by the user * @param useDefaultExcludes whether to add the default set of patterns to exclude, @@ -240,7 +240,7 @@ public Language language() { } /** - * {@return the name of the Java module (or other language-specific module) which is built by the sources}. + * {@return the name of the Java module (or other language-specific module) which is built by the sources} */ @Override public Optional<String> module() { @@ -248,7 +248,7 @@ public Optional<String> module() { } /** - * {@return the version of the platform where the code will be executed}. + * {@return the version of the platform where the code will be executed} */ @Override public Optional<Version> targetVersion() { @@ -256,7 +256,7 @@ public Optional<Version> targetVersion() { } /** - * {@return an explicit target path, overriding the default value}. + * {@return an explicit target path, overriding the default value} */ @Override public Optional<Path> targetPath() {
