From 2cd8bed48afac3d10a75eaf421075e0d1feeae0e Mon Sep 17 00:00:00 2001 From: BharathS24 Date: Tue, 7 Aug 2018 11:30:20 +0530 Subject: 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 --- .../inventory/daos/DCAEServiceTransactionDAO.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/main/java') 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 mappingsToInsert; private List 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 -- cgit 1.2.3-korg