summaryrefslogtreecommitdiffstats
path: root/sliPluginUtils
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-12-19 12:59:00 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-12-19 12:59:10 +0530
commitc293b7bb06ee40199514efb3ba5ba7533afcaf54 (patch)
treed097f2dbf8a482c871030392d6d2813611c560aa /sliPluginUtils
parent3d57bfaf6c8a06769965e537555b3d63b5a43d14 (diff)
fixed sonar issues in DME2.java
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ib6858f2ed802ca979f9098bf87c5536ba223ff5a Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'sliPluginUtils')
-rw-r--r--sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/DME2.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/DME2.java b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/DME2.java
index 5b3c2a623..65b597e11 100644
--- a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/DME2.java
+++ b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/DME2.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
@@ -132,7 +134,7 @@ public class DME2 implements SvcLogicJavaPlugin {
// Support optional parameters in a flexible way
for (Entry<String, String> param : parameters.entrySet()) {
if (!incompleteUrl.contains(param.getKey() + "=") && param.getValue() != null
- && param.getValue().length() > 0 && !OUTPUT_PATH_KEY.equals(param.getKey()) && !"partner".equals(param.getKey())) {
+ && param.getValue().length() > 0 && !OUTPUT_PATH_KEY.equals(param.getKey()) && !PARTNER_KEY.equals(param.getKey())) {
sb.append("&" + param.getKey() + "=" + param.getValue());
}
}
@@ -157,7 +159,7 @@ public class DME2 implements SvcLogicJavaPlugin {
// Support legacy direct java call
public String constructUrl(String service, String version, String subContext) {
- Map<String, String> parameters = new HashMap<String, String>();
+ Map<String, String> parameters = new HashMap<>();
parameters.put(SERVICE_KEY, service);
if (version != null) {
parameters.put(VERSION_KEY, version);