This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch grammar
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 07fad8d4263c7c0daf0aada73e0cc41ac2a21773
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Wed Apr 2 08:46:33 2025 -0400

    A few grammar fixes in javadoc
---
 .../org/apache/maven/api/services/ArtifactInstaller.java   | 14 +++++++-------
 .../apache/maven/artifact/resolver/ArtifactCollector.java  |  2 +-
 .../src/main/java/org/fusesource/jansi/Ansi.java           |  2 +-
 .../AbstractStringBasedModelInterpolator.java              |  2 +-
 .../main/java/org/apache/maven/plugin/AbstractMojo.java    |  2 +-
 .../apache/maven/execution/BuildResumptionAnalyzer.java    |  2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git 
a/api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java
 
b/api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java
index 35ee9f328d..f17daa76ac 100644
--- 
a/api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java
+++ 
b/api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstaller.java
@@ -45,10 +45,10 @@ public interface ArtifactInstaller extends Service {
     /**
      * @param session the repository session
      * @param artifact the {@link ProducedArtifact} to install
-     * @throws ArtifactInstallerException In case of an error which can be the 
a given artifact cannot be found or the
-     *             installation has failed.
-     * @throws IllegalArgumentException in case of parameter {@code session} 
is {@code null} or
-     *          {@code artifact} is {@code null}.
+     * @throws ArtifactInstallerException in case of an error which can be a 
given artifact cannot be found or the
+     *             installation has failed
+     * @throws IllegalArgumentException if a parameter {@code session} is 
{@code null} or
+     *          {@code artifact} is {@code null}
      */
     default void install(Session session, ProducedArtifact artifact) {
         install(session, Collections.singletonList(artifact));
@@ -57,9 +57,9 @@ default void install(Session session, ProducedArtifact 
artifact) {
     /**
      * @param session the repository session
      * @param artifacts Collection of {@link ProducedArtifact MavenArtifacts}
-     * @throws ArtifactInstallerException In case of an error which can be the 
a given artifact cannot be found or the
-     *             installation has failed.
-     * @throws IllegalArgumentException in case of parameter {@code request} 
is {@code null} or parameter
+     * @throws ArtifactInstallerException if the given artifact cannot be 
found or the
+     *             installation has failed
+     * @throws IllegalArgumentException if {@code request} is {@code null} or 
parameter
      *             {@code localRepository} is {@code null} or {@code 
localRepository} is not a directory
      *             or parameter {@code mavenArtifacts} is {@code null} or
      *             {@code mavenArtifacts.isEmpty()} is {@code true}.
diff --git 
a/compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactCollector.java
 
b/compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactCollector.java
index 7ce05c5e1c..bdddced4c3 100644
--- 
a/compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactCollector.java
+++ 
b/compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactCollector.java
@@ -27,7 +27,7 @@
 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
 
 /**
- * Artifact collector - takes a set of original artifacts and resolves all of 
the best versions to use
+ * Artifact collector - takes a set of original artifacts and resolves the 
best versions to use
  * along with their metadata. No artifacts are downloaded.
  */
 @Deprecated
diff --git a/compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java 
b/compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java
index 4a446b65c4..f861da0098 100644
--- a/compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java
+++ b/compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java
@@ -84,7 +84,7 @@ public int bgBright() {
     }
 
     /**
-     * Display attributes, also know as
+     * Display attributes, also known as
      * <a 
href="https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters">SGR
      * (Select Graphic Rendition) parameters</a>.
      */
diff --git 
a/compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
 
b/compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
index bec0625d5b..13b81619a5 100644
--- 
a/compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
+++ 
b/compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
@@ -158,7 +158,7 @@ public Object getValue(String expression) {
 
         valueSources.add(new MapBasedValueSource(config.getUserProperties()));
 
-        // Overwrite existing values in model properties. Otherwise it's not 
possible
+        // Overwrite existing values in model properties. Otherwise, it's not 
possible
         // to define them via command line e.g.: mvn -Drevision=6.5.7 ...
         versionProcessor.overwriteModelProperties(modelProperties, config);
         valueSources.add(new MapBasedValueSource(modelProperties));
diff --git 
a/compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
 
b/compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
index 8a168f796d..f9ea24d94e 100644
--- 
a/compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
+++ 
b/compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
@@ -154,7 +154,7 @@ public void setLog(Log log) {
 
     /**
      * <p>
-     * Returns the logger that has been injected into this mojo. If no logger 
has been setup yet, a
+     * Returns the logger that has been injected into this mojo. If no logger 
has been set up yet, a
      * <code>SystemStreamLog</code> logger will be created and returned.
      * </p>
      * <strong>Note:</strong>
diff --git 
a/impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java
 
b/impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java
index 0ce454a276..920c8b6cd3 100644
--- 
a/impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java
+++ 
b/impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java
@@ -21,7 +21,7 @@
 import java.util.Optional;
 
 /**
- * Instances of this class are responsible for determining whether it makes 
sense to "resume" a build (i.e., using
+ * Instances of this class are responsible for determining whether it makes 
sense to "resume" a build using
  * the {@code --resume} flag.
  */
 public interface BuildResumptionAnalyzer {

Reply via email to