Fix interface operation update on version change 91/129591/3
authorJvD_Ericsson <jeff.van.dam@est.tech>
Fri, 10 Jun 2022 08:28:57 +0000 (09:28 +0100)
committerMichael Morris <michael.morris@est.tech>
Thu, 23 Jun 2022 15:00:04 +0000 (15:00 +0000)
Fix interface operation implementation not being updated on version
change

Issue-ID: SDC-4045
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Idfe15f988f47c50be329354d711f43de8eab2203

common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java

index 5927a5a..54ab3bd 100644 (file)
@@ -477,6 +477,13 @@ public class ArtifactDataDefinition extends ToscaDataDefinition {
         } else if (!getArtifactRepository().equals(other.getArtifactRepository())) {
             return false;
         }
+        if (getArtifactName() == null) {
+            if (other.getArtifactName() != null) {
+                return false;
+            }
+        } else if (!getArtifactName().equals(other.getArtifactName())) {
+            return false;
+        }
         if (getArtifactType() == null) {
             if (other.getArtifactType() != null) {
                 return false;