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:26 UTC
[maven-resolver] 01/01: Null implementations shall return null
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;
}
}