diff options
Diffstat (limited to 'catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java b/catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java index 3c5f1e2ec3..a93ab15526 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/info/Relationship.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,11 +17,9 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.info; import com.fasterxml.jackson.annotation.JsonProperty; - import java.util.ArrayList; import java.util.List; import lombok.AccessLevel; @@ -31,33 +29,29 @@ import lombok.Setter; @Getter @Setter public final class Relationship { - + @JsonProperty("related-to") private String relatedTo; - - @JsonProperty(value="relationship-label") + @JsonProperty(value = "relationship-label") private String relationshipLabel; - - @JsonProperty(value="related-link", required=false) + @JsonProperty(value = "related-link", required = false) private String relatedLink; - @JsonProperty("relationship-data") @Getter(AccessLevel.NONE) private List<RelationshipData> relationshipData; - @JsonProperty("related-to-property") @Getter(AccessLevel.NONE) private List<RelatedToProperty> relatedToProperty; public List<RelationshipData> getRelationshipData() { - if(relationshipData == null) { + if (relationshipData == null) { relationshipData = new ArrayList<>(); } return relationshipData; } public List<RelatedToProperty> getRelatedToProperty() { - if(relatedToProperty == null) { + if (relatedToProperty == null) { relatedToProperty = new ArrayList<>(); } return relatedToProperty; |