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 588ba86 Use 'block' term for definitions 588ba86 is described below commit 588ba86e3a2e2555819ca44540e468b9c342a6ec Author: Michael Osipov <micha...@apache.org> AuthorDate: Sun Mar 14 21:05:52 2021 +0100 Use 'block' term for definitions --- .../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 dfb413d..502fecc 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 block 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 blocked, + public DefaultMirrorSelector add( String id, String url, String type, boolean repositoryManager, boolean block, String mirrorOfIds, String mirrorOfTypes ) { - mirrors.add( new MirrorDef( id, url, type, repositoryManager, blocked, mirrorOfIds, mirrorOfTypes ) ); + mirrors.add( new MirrorDef( id, url, type, repositoryManager, block, mirrorOfIds, mirrorOfTypes ) ); return this; } @@ -87,7 +87,7 @@ public final class DefaultMirrorSelector builder.setRepositoryManager( mirror.repositoryManager ); - builder.setBlocked( mirror.blocked ); + builder.setBlocked( mirror.block ); if ( mirror.type != null && mirror.type.length() > 0 ) { @@ -295,20 +295,20 @@ public final class DefaultMirrorSelector final boolean repositoryManager; - final boolean blocked; + final boolean block; final String mirrorOfIds; final String mirrorOfTypes; - MirrorDef( String id, String url, String type, boolean repositoryManager, boolean blocked, String mirrorOfIds, + MirrorDef( String id, String url, String type, boolean repositoryManager, boolean block, String mirrorOfIds, String mirrorOfTypes ) { this.id = id; this.url = url; this.type = type; this.repositoryManager = repositoryManager; - this.blocked = blocked; + this.block = block; this.mirrorOfIds = mirrorOfIds; this.mirrorOfTypes = mirrorOfTypes; }