aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-02 23:49:08 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-02 23:49:08 +0200
commitc56ce11c20b1963760b74e397acb200f61c1f95e (patch)
treedd805d2d7a6b8e0c6ec65578106eec67d07b50ad /archiva-modules/metadata/metadata-model
parentbb3b074aaf5a2be0d81c950ecf1588fe8efa3316 (diff)
downloadarchiva-c56ce11c20b1963760b74e397acb200f61c1f95e.tar.gz
archiva-c56ce11c20b1963760b74e397acb200f61c1f95e.zip
Fixing unit tests
Diffstat (limited to 'archiva-modules/metadata/metadata-model')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
index fc4d20d7a..4b3f4ba6c 100644
--- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java
@@ -253,10 +253,13 @@ public class ArtifactMetadata
{
return false;
}
+ /**
+ * We cannot compare in different repositories, if this is in here
if ( !repositoryId.equals( that.repositoryId ) )
{
return false;
}
+ **/
if ( sha1 != null ? !sha1.equals( that.sha1 ) : that.sha1 != null )
{
return false;