From 45cdc54762d8c45ddae9ad6c3ecf289abd2d0661 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Fri, 7 Dec 2018 16:15:32 +0530 Subject: fixed sonar issues in SvcLogicDblibStore.java fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ia1ddf9787311b786c71b19e651730b65c2c0835e Signed-off-by: Sandeep J --- .../main/java/org/onap/ccsdk/sli/core/sli/SvcLogicDblibStore.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicDblibStore.java b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicDblibStore.java index 3ade88f4f..87e8f1a4d 100644 --- a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicDblibStore.java +++ b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicDblibStore.java @@ -302,7 +302,7 @@ public class SvcLogicDblibStore implements SvcLogicStore { throws SvcLogicException { String deleteGraphSql = "DELETE FROM SVC_LOGIC WHERE module = ? AND rpc = ? AND version = ? AND mode = ?"; - ArrayList args = new ArrayList(); + ArrayList args = new ArrayList<>(); args.add(module); args.add(rpc); @@ -320,7 +320,7 @@ public class SvcLogicDblibStore implements SvcLogicStore { String deactivateSql = "UPDATE SVC_LOGIC SET active = 'N' WHERE module = ? AND rpc = ? AND mode = ?"; String activateSql = "UPDATE SVC_LOGIC SET active = 'Y' WHERE module = ? AND rpc = ? AND mode = ? AND version = ?"; - ArrayList args = new ArrayList(); + ArrayList args = new ArrayList<>(); args.add(graph.getModule()); args.add(graph.getRpc()); @@ -437,7 +437,7 @@ public class SvcLogicDblibStore implements SvcLogicStore { String activateSql = "UPDATE SVC_LOGIC SET active = 'Y' WHERE module = ? AND rpc = ? AND mode = ? AND version = ?"; - ArrayList args = new ArrayList(); + ArrayList args = new ArrayList<>(); args.add(module); args.add(rpc); -- cgit 1.2.3-korg