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/06/20 10:53:25 UTC
[maven-resolver] branch incorrect-null-impl created (now 8e8d5b2)
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a change to branch incorrect-null-impl
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git.
at 8e8d5b2 Null implementations shall return null
This branch includes the following new commits:
new 8e8d5b2 Null implementations shall return null
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-resolver] 01/01: Null implementations shall return null
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch incorrect-null-impl
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit 8e8d5b201da3c2b9bc79b9a99770467855aec833
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Jun 20 12:53:15 2021 +0200
Null implementations shall return null
---
.../main/java/org/eclipse/aether/DefaultRepositorySystemSession.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/DefaultRepositorySystemSession.java b/maven-resolver-api/src/main/java/org/eclipse/aether/DefaultRepositorySystemSession.java
index 90b32f4..0f2754e 100644
--- a/maven-resolver-api/src/main/java/org/eclipse/aether/DefaultRepositorySystemSession.java
+++ b/maven-resolver-api/src/main/java/org/eclipse/aether/DefaultRepositorySystemSession.java
@@ -816,7 +816,7 @@ public final class DefaultRepositorySystemSession
public Proxy getProxy( RemoteRepository repository )
{
requireNonNull( repository, "repository cannot be null" );
- return repository.getProxy();
+ return null;
}
}
@@ -844,7 +844,7 @@ public final class DefaultRepositorySystemSession
public Authentication getAuthentication( RemoteRepository repository )
{
requireNonNull( repository, "repository cannot be null" );
- return repository.getAuthentication();
+ return null;
}
}