aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java
diff options
context:
space:
mode:
authorsliard <samuel.liard@gmail.com>2021-05-19 17:45:17 +0200
committerMichael Morris <michael.morris@est.tech>2021-05-24 09:26:20 +0000
commit0af92af7d5c4a6ecf6ea4e637077f94e3fe22ec1 (patch)
tree9e2c3652f2d0a000b55ba37a5161d247c8351701 /catalog-model/src/main/java
parentac69ef1da7e87ee2602b3790ec680be4c1f74cf3 (diff)
[SDC] Fix sonar issues
Fix all blocker issues for catalog-be Issue-ID: SDC-3598 Signed-off-by: sliard <samuel.liard@gmail.com> Change-Id: I53907c1be4cac5dd94b6f20ab4e5848f6fcebed9
Diffstat (limited to 'catalog-model/src/main/java')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/CatalogUpdateTimestamp.java4
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/Resource.java3
2 files changed, 5 insertions, 2 deletions
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.