summaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorkoblosz <sandra.koblosz@nokia.com>2018-07-09 13:42:31 +0200
committerTal Gitelman <tg851x@intl.att.com>2018-08-06 10:09:52 +0000
commitbaf7f0a965d0ffebd5308d44758bfa9ba96c0c76 (patch)
treebc07c24e50a53a744484b15592fafda013159686 /catalog-model
parentc8661bd2bab88a77a29167c782a76cdf729648ed (diff)
Fixes of sonar violations sdc and refactor
Issue-ID: SDC-1484 Change-Id: I3cf17454c533d3419c97af63cc6b5412976726fb Signed-off-by: Sandra Koblosz <sandra.koblosz@nokia.com>
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java
index bdffc8ac14..42e66c01df 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java
@@ -89,12 +89,10 @@ public class ArtifactDefinition extends ArtifactDataDefinition {
}
- public boolean checkEsIdExist() {
- if ((getEsId() != null) && (!getEsId().trim().isEmpty())) {
- return true;
- }
- return false;
- }
+
+ public boolean checkEsIdExist() {
+ return (getEsId() != null) && (!getEsId().trim().isEmpty());
+ }
@Override
public int hashCode() {