Removed MSB Invocation During AAI Calling
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / aai / entity / RelationshipList.java
index 533760c..6e03fb5 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright 2017 ZTE Corporation.
+ * Copyright 2017-2023 ZTE Corporation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 package org.onap.holmes.common.aai.entity;
 
-import java.util.List;
 import lombok.Getter;
 import lombok.Setter;
 
+import java.util.List;
+
 @Setter
 @Getter
 public class RelationshipList {
@@ -28,7 +29,7 @@ public class RelationshipList {
 
     public Relationship getRelationship(String relatedTo) {
         Relationship relationship = null;
-        if(null == relationships || relationships.size() == 0)
+        if(null == relationships || relationships.isEmpty())
             return  relationship;
         for(int i = 0; i < relationships.size(); i++) {
             if (relatedTo.equals(relationships.get(i).getRelatedTo())) {
@@ -49,7 +50,7 @@ public class RelationshipList {
 
         public String getRelatedToPropertyValue(String key) {
             String value = "";
-            if (null == relatedToPropertyList || relatedToPropertyList.size() == 0) {
+            if (null == relatedToPropertyList || relatedToPropertyList.isEmpty()) {
                 return "";
             }
             for(int i = 0; i < relatedToPropertyList.size(); i++) {
@@ -63,7 +64,7 @@ public class RelationshipList {
 
         public String getRelationshipDataValue(String key) {
             String value = "";
-            if (null == relationshipDataList || relationshipDataList.size() == 0) {
+            if (null == relationshipDataList || relationshipDataList.isEmpty()) {
                 return "";
             }
             for(int i = 0; i < relationshipDataList.size(); i++) {