You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/03/15 21:49:34 UTC

[maven-resolver] branch 1.6.x updated: Refine blocked documentation

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

michaelo pushed a commit to branch 1.6.x
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git


The following commit(s) were added to refs/heads/1.6.x by this push:
     new ffc91c1  Refine blocked documentation
ffc91c1 is described below

commit ffc91c199b2526fc1879c28abee5ae2ceb26a10a
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Mar 15 22:49:06 2021 +0100

    Refine blocked documentation
---
 .../main/java/org/eclipse/aether/repository/RemoteRepository.java   | 6 +++---
 .../org/eclipse/aether/internal/impl/DefaultArtifactResolver.java   | 2 +-
 .../org/eclipse/aether/util/repository/DefaultMirrorSelector.java   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RemoteRepository.java b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RemoteRepository.java
index 04d35f9..1bf48e9 100644
--- a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RemoteRepository.java
+++ b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RemoteRepository.java
@@ -215,9 +215,9 @@ public final class RemoteRepository
     }
 
     /**
-     * Indicates whether this repository is blocked against any download request.
+     * Indicates whether this repository is blocked from performing any download requests.
      * 
-     * @return {@code true} if this repository is blocked against any download request, {@code false} otherwise.
+     * @return {@code true} if this repository is blocked from performing any download requests, {@code false} otherwise.
      */
     public boolean isBlocked()
     {
@@ -599,7 +599,7 @@ public final class RemoteRepository
         /**
          * Marks the repository as blocked or not.
          * 
-         * @param blocked {@code true} if the repository should not be allowed to get any request.
+         * @param blocked {@code true} if the repository should not be allowed to perform any requests.
          * @return This builder for chaining, never {@code null}.
          */
         public Builder setBlocked( boolean blocked )
diff --git a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
index 7d47515..c703dfc 100644
--- a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
+++ b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultArtifactResolver.java
@@ -502,7 +502,7 @@ public class DefaultArtifactResolver
                 }
                 else
                 {
-                    throw new NoRepositoryConnectorException( repo, "Blocking mirror for repositories: "
+                    throw new NoRepositoryConnectorException( repo, "Blocked mirror for repositories: "
                         + repo.getMirroredRepositories() );
                 }
             }
diff --git a/maven-resolver-util/src/main/java/org/eclipse/aether/util/repository/DefaultMirrorSelector.java b/maven-resolver-util/src/main/java/org/eclipse/aether/util/repository/DefaultMirrorSelector.java
index dfb413d..9dfa955 100644
--- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/repository/DefaultMirrorSelector.java
+++ b/maven-resolver-util/src/main/java/org/eclipse/aether/util/repository/DefaultMirrorSelector.java
@@ -55,7 +55,7 @@ public final class DefaultMirrorSelector
      * @param url The URL of the mirror, must not be {@code null}.
      * @param type The content type of the mirror, must not be {@code null}.
      * @param repositoryManager A flag whether the mirror is a repository manager or a simple server.
-     * @param blocked A flag whether the mirror blocks any download request.
+     * @param blocked A flag whether the mirror is blocked from performing any download requests.
      * @param mirrorOfIds The identifier(s) of remote repositories to mirror, must not be {@code null}. Multiple
      *            identifiers can be separated by comma and additionally the wildcards "*", "external:http:*" and
      *            "external:*" can be used to match all (external) repositories, prefixing a repo id with an