summaryrefslogtreecommitdiffstats
path: root/sliPluginUtils
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-12-19 17:46:34 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-19 17:46:34 +0000
commita4cccd12c312056c3ce016f978e87d52a0bd2def (patch)
tree6d316da0e130c2dfbb2cfa31c3ce52a45e150ce9 /sliPluginUtils
parent48c1e8313c58e9881286677cdfe2fc794a4d3a7c (diff)
parentc293b7bb06ee40199514efb3ba5ba7533afcaf54 (diff)
Merge "fixed sonar issues in DME2.java"
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 5b3c2a62..65b597e1 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);