Created
January 28, 2025 12:23
-
-
Save gnodet/b5eecfee186a2fc3896f04c82125e63c to your computer and use it in GitHub Desktop.
diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultRemoteRepository.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultRemoteRepository.java | |
index 7bb02e4d5b..85de3f664a 100644 | |
--- a/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultRemoteRepository.java | |
+++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultRemoteRepository.java | |
@@ -18,6 +18,8 @@ | |
*/ | |
package org.apache.maven.impl; | |
+import java.util.Objects; | |
+ | |
import org.apache.maven.api.RemoteRepository; | |
import org.apache.maven.api.annotations.Nonnull; | |
@@ -56,6 +58,16 @@ public String getProtocol() { | |
return repository.getProtocol(); | |
} | |
+ @Override | |
+ public boolean equals(Object o) { | |
+ return o instanceof DefaultRemoteRepository that && Objects.equals(repository, that.repository); | |
+ } | |
+ | |
+ @Override | |
+ public int hashCode() { | |
+ return repository.hashCode(); | |
+ } | |
+ | |
@Override | |
public String toString() { | |
return repository.toString(); | |
( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment