diff options
author | koblosz <sandra.koblosz@nokia.com> | 2018-07-09 13:42:31 +0200 |
---|---|---|
committer | Tal Gitelman <tg851x@intl.att.com> | 2018-08-06 10:09:52 +0000 |
commit | baf7f0a965d0ffebd5308d44758bfa9ba96c0c76 (patch) | |
tree | bc07c24e50a53a744484b15592fafda013159686 /catalog-model/src/main/java | |
parent | c8661bd2bab88a77a29167c782a76cdf729648ed (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/src/main/java')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/ArtifactDefinition.java | 10 |
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() { |