aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-12-29 00:02:12 +0530
committerezhil <ezhrajam@in.ibm.com>2018-12-29 00:02:22 +0530
commit5e47089b5f1e54ec1196bc7f88e36ca3855c7492 (patch)
tree7b9f2b263eefeeaf8e4e23e88a3b06340ac0c412
parent7833631f8c9824c3e0061aa0038563cbd1c8102f (diff)
Fixed major sonar issue in ApiPerms.java
Fixed variable issue Change-Id: Ie1b22a74fb6806ad5e8cd07a5a4163579700ca7e Issue-ID: DMAAP-898 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java b/src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java
index f3b9ebc..bcadf40 100644
--- a/src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java
+++ b/src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java
@@ -3,6 +3,8 @@
* org.onap.dmaap
* ================================================================================
* 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.
@@ -172,8 +174,8 @@ public class ApiPerms extends BaseLoggingClass {
}
public void setEnvMap() {
- Dmaap dmaap = new DmaapService().getDmaap();
- String dmaapName = dmaap.getDmaapName();
+ Dmaap dmaapVar = new DmaapService().getDmaap();
+ String dmaapName = dmaapVar.getDmaapName();
PermissionMap.initMap( envMap, dmaapName );
}