From 0af92af7d5c4a6ecf6ea4e637077f94e3fe22ec1 Mon Sep 17 00:00:00 2001 From: sliard Date: Wed, 19 May 2021 17:45:17 +0200 Subject: [SDC] Fix sonar issues Fix all blocker issues for catalog-be Issue-ID: SDC-3598 Signed-off-by: sliard Change-Id: I53907c1be4cac5dd94b6f20ab4e5848f6fcebed9 --- .../main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java | 4 +++- catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java index 7bcb8aa39a..9abf528e3e 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java @@ -26,12 +26,14 @@ import lombok.Getter; import lombok.Setter; import lombok.ToString; +import java.io.Serializable; + @Getter @Setter @ToString @AllArgsConstructor @EqualsAndHashCode -public class CatalogUpdateTimestamp { +public class CatalogUpdateTimestamp implements Serializable { @JsonProperty("previousUpdateTime") private long previousUpdateTime; diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java index a75ed9f68b..51623a5bda 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java @@ -19,6 +19,7 @@ */ package org.openecomp.sdc.be.model; +import java.io.Serializable; import java.util.List; import java.util.Map; import java.util.Optional; @@ -37,7 +38,7 @@ import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum; @Setter @EqualsAndHashCode(callSuper = true) @ToString -public class Resource extends Component { +public class Resource extends Component implements Serializable { /** * Please note that more than one "derivedFrom" resource is not currently supported by the app. The first list element is always addressed. -- cgit 1.2.3-korg