From e49c63a4f876d28ef3b38b9028924301eead4625 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 26 Apr 2018 10:52:06 +0530 Subject: Migrate to entrySet from keySet Issue-ID: CLI-100 Change-Id: I8ccbe473ad44c7f08fbc16cd1953adc144946271 Signed-off-by: Kanagaraj Manickam k00365106 --- .../org/onap/cli/fw/http/connect/OnapHttpConnection.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java index 266ab855..31786245 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java @@ -240,16 +240,16 @@ public class OnapHttpConnection { input.getReqHeaders().put("Accept", OnapCommandHttpConstants.APPLICATION_JSON); } - for (String headerName : this.mapCommonHeaders.keySet()) { - input.getReqHeaders().put(headerName, this.mapCommonHeaders.get(headerName)); + for (Entry header : this.mapCommonHeaders.entrySet()) { + input.getReqHeaders().put(header.getKey(), header.getValue()); } } private void addCommonCookies(CookieStore cookieStore) { - for (String headerName : this.mapCommonHeaders.keySet()) { - Cookie cookie = new BasicClientCookie(headerName, this.mapCommonHeaders.get(headerName)); - cookieStore.addCookie(cookie); - } + for (Entry header : this.mapCommonHeaders.entrySet()) { + Cookie cookie = new BasicClientCookie(header.getKey(), header.getValue()); + cookieStore.addCookie(cookie); + } } private void updateResultFromCookies(HttpResult result, List cookies) { -- cgit 1.2.3-korg