diff options
author | Parshad Patel <pars.patel@samsung.com> | 2019-04-23 10:37:45 +0900 |
---|---|---|
committer | Parshad Patel <pars.patel@samsung.com> | 2019-07-03 15:22:24 +0900 |
commit | aad3703c8fe9929c71f9a9465a701f56dd1cbd5a (patch) | |
tree | 0d87f08a8484ced7a5bb2a6441aa2ce76fb43171 /ecomp-sdk/epsdk-core/src/main | |
parent | b3ced8c4eb98a152076b3f0a05ba601bce7f8d2a (diff) |
Fix sonar issue in epsdk-domain
Fix Constructor has 10 parameters, which is greater than 7 authorized
Issue-ID: PORTAL-562
Change-Id: I8eff61e2d829c86bd20c7052c181f90eed1a5926
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/main')
-rw-r--r-- | ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/ElementMapService.java | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/ElementMapService.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/ElementMapService.java index 7fdc5609..b126d822 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/ElementMapService.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/ElementMapService.java @@ -580,7 +580,11 @@ public class ElementMapService { columns = computeColumns(containerElementsMap.keySet()); } - Container thisContainer = new Container(id, name, rows, columns, 1, 4, 8, 12, 1, 2); + Container thisContainer = new Container.ContainerBuilder().setId(id).setName(name) + .setNumOfRows(rows).setNumOfCols(columns).setInterEleWd(1).setInterEleH(4) + .setInterEleToContainerWd(8).setInterEleToContainerH(12) + .setInterEleToInnerContainerWd(1).setInterEleToInnerContainerH(2) + .createContainer(); thisContainer.setElements(containerElementsMap); return thisContainer; @@ -603,7 +607,11 @@ public class ElementMapService { columns = computeColumns(containerElementsMap.keySet()); } - Container thisContainer = new Container(id, name, rows, columns, 2, 6, 2, 5, 0, 0); + Container thisContainer = new Container.ContainerBuilder().setId(id).setName(name) + .setNumOfRows(rows).setNumOfCols(columns).setInterEleWd(2).setInterEleH(6) + .setInterEleToContainerWd(2).setInterEleToContainerH(5) + .setInterEleToInnerContainerWd(0).setInterEleToInnerContainerH(0) + .createContainer(); thisContainer.setElements(containerElementsMap); thisContainer.setInnerContainer(innerContainersMap); @@ -864,8 +872,13 @@ public class ElementMapService { if (domain.equalsIgnoreCase(domainName)) { String rowColumnKey = ""; - Container eachContainer = new Container(domainName + ":" + elementName, elementName, 1, 1, 3, 6, 2, - 5, 0, 0); + Container eachContainer = + new Container.ContainerBuilder().setId(domainName + ":" + elementName) + .setName(elementName).setNumOfRows(1).setNumOfCols(1) + .setInterEleWd(3).setInterEleH(6).setInterEleToContainerWd(2) + .setInterEleToContainerH(5).setInterEleToInnerContainerWd(0) + .setInterEleToInnerContainerH(0).createContainer(); + int count = 0; while (count <= 9) { if (thisContainersMap.containsKey(String.valueOf(count).concat(String.valueOf(count)))) { |