summaryrefslogtreecommitdiffstats
path: root/sliPluginUtils/provider/src/main
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-12-19 13:04:02 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-12-19 13:04:13 +0530
commit69e82097f57e8994be98e5262b5ca9fb8d9c6c53 (patch)
tree2136e8029a8ee55bde64197f4b5215430ae5da8f /sliPluginUtils/provider/src/main
parent3d57bfaf6c8a06769965e537555b3d63b5a43d14 (diff)
fixed sonar issues in SliPluginUtils.java
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I672eb667887af1d5d25de4da7429299b414ef79f Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'sliPluginUtils/provider/src/main')
-rw-r--r--sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java
index 0eb53199c..ebfe81718 100644
--- a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java
+++ b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliPluginUtils.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017 AT&T Intellectual Property. All rights
* reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -61,6 +63,8 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
}
private static final Logger LOG = LoggerFactory.getLogger(SliPluginUtils.class);
+ private static final String LOG_MSG="extracting list from context memory";
+ private static final String LOG_MSG1="removing elements from list";
// ========== CONSTRUCTORS ==========
@@ -116,9 +120,9 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
}
// Extract list from context memory & remove object @ index
- LOG.trace("extracting list from context memory");
+ LOG.trace(LOG_MSG);
list = SvcLogicContextList.extract(ctx, list_pfx);
- LOG.trace("removing elements from list");
+ LOG.trace(LOG_MSG1);
list.remove(index);
}
else if( param_value != null ) {
@@ -127,9 +131,9 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
// Extract list from context memory & remove objects with
// key-value pair
LOG.trace("executing remove by key-value pair logic");
- LOG.trace("extracting list from context memory");
+ LOG.trace(LOG_MSG);
list = SvcLogicContextList.extract(ctx, list_pfx);
- LOG.trace("removing elements from list");
+ LOG.trace(LOG_MSG1);
list.remove( param_key, param_value );
}
else if( param_keys_length != null ) {
@@ -152,9 +156,9 @@ public class SliPluginUtils implements SvcLogicJavaPlugin {
// Extract list from context memory & remove objects with all
// key-value pairs matching
- LOG.trace("extracting list from context memory");
+ LOG.trace(LOG_MSG);
list = SvcLogicContextList.extract(ctx, list_pfx);
- LOG.trace("removing elements from list");
+ LOG.trace(LOG_MSG1);
list.remove(keys_values);
}
else {