From f6b4d0d31da3a5677316a2a3c39372e94cde5284 Mon Sep 17 00:00:00 2001 From: sheetalm Date: Wed, 13 Dec 2017 16:45:34 +0530 Subject: Fixed sonar issues - ServiceTemplateEntity Add override annotations to methods. Remove no arg default constructor Corrected Copyright. Not fixing duplicate code violation since same code block exists but for different entities Change-Id: Ib776e280fb7e67100ac75f3312ad0c19dc709d46 Issue-ID: SDC-343 Signed-off-by: sheetalm --- .../core/model/types/ServiceTemplateEntity.java | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-model-lib') diff --git a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java index 8f886c2e74..71d6973e50 100644 --- a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java +++ b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java @@ -1,21 +1,17 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ +/* + * Copyright © 2016-2017 European Support Limited + * * 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. * See the License for the specific language governing permissions and * limitations under the License. - * ============LICENSE_END========================================================= */ package org.openecomp.core.model.types; @@ -64,9 +60,6 @@ public class ServiceTemplateEntity implements ServiceElementEntity { @Column(name = "base_name") private String baseName; - public ServiceTemplateEntity() { - } - /** * Instantiates a new Service template entity. * @@ -107,10 +100,12 @@ public class ServiceTemplateEntity implements ServiceElementEntity { return getId(); } + @Override public String getId() { return id; } + @Override public void setId(String id) { this.id = id; } @@ -125,6 +120,7 @@ public class ServiceTemplateEntity implements ServiceElementEntity { this.version = version; } + @Override public String getName() { return name; } @@ -133,6 +129,7 @@ public class ServiceTemplateEntity implements ServiceElementEntity { this.name = name; } + @Override public ByteBuffer getContentData() { return contentData; } -- cgit 1.2.3-korg