aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-lib/src
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib/src')
-rw-r--r--openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java
index 332555d509..bb557f6076 100644
--- a/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java
+++ b/openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java
@@ -761,7 +761,7 @@ public class ToscaAnalyzerServiceImpl implements ToscaAnalyzerService {
ServiceTemplate serviceTemplate, ToscaServiceModel toscaServiceModel) {
Optional<Map.Entry<String, ServiceTemplate>> serviceTemplateEntry =
toscaServiceModel.getServiceTemplates().entrySet().stream()
- .filter(entry -> entry.getValue().equals(serviceTemplate)).findFirst();
+ .filter(entry -> entry.getValue() == serviceTemplate).findFirst();
if (!serviceTemplateEntry.isPresent()) {
if (importServiceTemplateFile.contains("../")) {
return importServiceTemplateFile.replace("../", "");