diff options
author | BharathS24 <BS00493532@techmahindra.com> | 2018-08-07 11:30:20 +0530 |
---|---|---|
committer | BharathS24 <BS00493532@techmahindra.com> | 2018-08-07 11:30:43 +0530 |
commit | 2cd8bed48afac3d10a75eaf421075e0d1feeae0e (patch) | |
tree | 87ef787c28d3df784c6a171a04ef4b2fff653a46 /src | |
parent | 0cd3c5170006d24f515e3bdc71ee37b0b92b2922 (diff) |
Sonar Minor issue
Move this constructor to comply with Java Code Conventions
Sonar Link : https://sonar.onap.org/issues?myIssues=true&open=AWEPiFEz-08if2a6xy_C&resolved=false
Location : src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java:L112
Issue-ID: DCAEGEN2-686
Change-Id: I47f08f63d12dc2d4f1246dcba2a4ed22e2488bae
Signed-off-by: BharathS24 <BS00493532@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java b/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java index a4571cd..8b635a9 100644 --- a/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java +++ b/src/main/java/org/onap/dcae/inventory/daos/DCAEServiceTransactionDAO.java @@ -49,6 +49,15 @@ public abstract class DCAEServiceTransactionDAO { private List<String> mappingsToInsert; private List<String> mappingsToDelete; + public DCAEServiceTransactionContext(String serviceId, DateTime modified) { + this.serviceId = serviceId; + this.modified = modified; + this.componentObjectsToInsert = new ArrayList<>(); + this.componentObjectsToUpdate = new ArrayList<>(); + this.mappingsToInsert = new ArrayList<>(); + this.mappingsToDelete = new ArrayList<>(); + } + public String getServiceId() { return serviceId; } @@ -108,16 +117,6 @@ public abstract class DCAEServiceTransactionDAO { this.mappingsToDelete.add(componentId); return this.mappingsToDelete; } - - public DCAEServiceTransactionContext(String serviceId, DateTime modified) { - this.serviceId = serviceId; - this.modified = modified; - this.componentObjectsToInsert = new ArrayList<>(); - this.componentObjectsToUpdate = new ArrayList<>(); - this.mappingsToInsert = new ArrayList<>(); - this.mappingsToDelete = new ArrayList<>(); - } - } @CreateSqlObject |