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:44:58 UTC
[maven-resolver] branch master updated: Revert "Use 'block' term
for definitions"
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
The following commit(s) were added to refs/heads/master by this push:
new 134c1f0 Revert "Use 'block' term for definitions"
134c1f0 is described below
commit 134c1f0627b6962d09d6c715813d07d031cc1a46
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Mar 15 22:44:08 2021 +0100
Revert "Use 'block' term for definitions"
This reverts commit defbdf767f6f6273fa419716cedce61eb3a5c724.
---
.../aether/util/repository/DefaultMirrorSelector.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
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 502fecc..dfb413d 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 block A flag whether the mirror blocks any download request.
+ * @param blocked A flag whether the mirror blocks any download request.
* @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
@@ -65,10 +65,10 @@ public final class DefaultMirrorSelector
* wildcard "*" and the "!" negation syntax are supported. For example "*,!p2".
* @return This selector for chaining, never {@code null}.
*/
- public DefaultMirrorSelector add( String id, String url, String type, boolean repositoryManager, boolean block,
+ public DefaultMirrorSelector add( String id, String url, String type, boolean repositoryManager, boolean blocked,
String mirrorOfIds, String mirrorOfTypes )
{
- mirrors.add( new MirrorDef( id, url, type, repositoryManager, block, mirrorOfIds, mirrorOfTypes ) );
+ mirrors.add( new MirrorDef( id, url, type, repositoryManager, blocked, mirrorOfIds, mirrorOfTypes ) );
return this;
}
@@ -87,7 +87,7 @@ public final class DefaultMirrorSelector
builder.setRepositoryManager( mirror.repositoryManager );
- builder.setBlocked( mirror.block );
+ builder.setBlocked( mirror.blocked );
if ( mirror.type != null && mirror.type.length() > 0 )
{
@@ -295,20 +295,20 @@ public final class DefaultMirrorSelector
final boolean repositoryManager;
- final boolean block;
+ final boolean blocked;
final String mirrorOfIds;
final String mirrorOfTypes;
- MirrorDef( String id, String url, String type, boolean repositoryManager, boolean block, String mirrorOfIds,
+ MirrorDef( String id, String url, String type, boolean repositoryManager, boolean blocked, String mirrorOfIds,
String mirrorOfTypes )
{
this.id = id;
this.url = url;
this.type = type;
this.repositoryManager = repositoryManager;
- this.block = block;
+ this.blocked = blocked;
this.mirrorOfIds = mirrorOfIds;
this.mirrorOfTypes = mirrorOfTypes;
}