You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2025/07/23 17:27:39 UTC
(maven) branch master updated: Javadoc typos fixes (#10946)
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new d6085942e5 Javadoc typos fixes (#10946)
d6085942e5 is described below
commit d6085942e576ddd391b493f10155fbfb22079cdd
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Jul 23 19:27:33 2025 +0200
Javadoc typos fixes (#10946)
---
.../src/main/java/org/apache/maven/impl/PathSelector.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/PathSelector.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/PathSelector.java
index eb6ecedb1e..20d68cd7bb 100644
--- a/impl/maven-impl/src/main/java/org/apache/maven/impl/PathSelector.java
+++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/PathSelector.java
@@ -217,7 +217,7 @@ final class PathSelector implements PathMatcher {
private final Path baseDirectory;
/**
- * Whether paths must be relativized before to be given to a matcher. If {@code true}, then every paths
+ * Whether paths must be relativized before being given to a matcher. If {@code true}, then every paths
* will be made relative to {@link #baseDirectory} for allowing patterns like {@code "foo/bar/*.java"}
* to work. As a slight optimization, we can skip this step if all patterns start with {@code "**"}.
*/
@@ -269,7 +269,7 @@ public static PathMatcher of(
/**
* Returns the given array of excludes, optionally expanded with a default set of excludes,
* then with unnecessary excludes omitted. An unnecessary exclude is an exclude which will never
- * match a file because there are no include which would accept a file that could match the exclude.
+ * match a file because there are no includes which would accept a file that could match the exclude.
* For example, if the only include is {@code "*.java"}, then the <code>"**/project.pj"</code>,
* <code>"**/.DS_Store"</code> and other excludes will never match a file and can be omitted.
* Because the list of {@linkplain #DEFAULT_EXCLUDES default excludes} contains many elements,
@@ -528,7 +528,7 @@ private static String[] simplify(Set<String> patterns, boolean excludes) {
*
* @param patterns the normalized include or exclude patterns
* @param excludes whether the patterns are exclude patterns
- * @return pattens of directories to include or exclude
+ * @return patterns of directories to include or exclude
*/
private static String[] directoryPatterns(final String[] patterns, final boolean excludes) {
// TODO: use `LinkedHashSet.newLinkedHashSet(int)` instead with JDK19.