aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-09-11 14:41:56 +0530
committerTakamune Cho <takamune.cho@att.com>2019-09-17 14:59:56 +0000
commit6baf061a9caa39bd2fff0c7420e5562dfb31a8c6 (patch)
tree4dba87b2f5c7a2ac3d126a3f646aaaec0384b587 /appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle
parent4d759ef950a2be9dbbfc05850eec6b3feb295865 (diff)
Sonar fix- APPC-1715
Fixed multiple sonar issues across this file Issue-ID: APPC-1715 Change-Id: I5a7df4bde164b8ec3c8f91f07646d0630d52fa59 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle')
-rw-r--r--appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiHeaderFactory.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiHeaderFactory.java b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiHeaderFactory.java
index e40eee2a6..a2df23506 100644
--- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiHeaderFactory.java
+++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/ChefApiHeaderFactory.java
@@ -4,6 +4,7 @@
* ================================================================================
* Copyright (C) 2018 Nokia. All rights reserved.
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * Modification Copyright (C) 2019 IBM
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,11 +55,11 @@ public class ChefApiHeaderFactory {
sb.append("X-Ops-Timestamp:").append(timeStamp).append("\n");
sb.append("X-Ops-UserId:").append(userId);
- String auth_String = Utils.signWithRSA(sb.toString(), pemPath);
- String[] auth_headers = Utils.splitAs60(auth_String);
+ String authString = Utils.signWithRSA(sb.toString(), pemPath);
+ String[] authHeaders = Utils.splitAs60(authString);
- for (int i = 0; i < auth_headers.length; i++) {
- builder.put("X-Ops-Authorization-" + (i + 1), auth_headers[i]);
+ for (int i = 0; i < authHeaders.length; i++) {
+ builder.put("X-Ops-Authorization-" + (i + 1), authHeaders[i]);
}
return builder.build();