Merge "Fixed major sonar issue in ApiPerms.java"
authorvarun gudisena <varuneshwar.gudisena@att.com>
Fri, 18 Jan 2019 14:41:08 +0000 (14:41 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 18 Jan 2019 14:41:08 +0000 (14:41 +0000)
src/main/java/org/onap/dmaap/dbcapi/authentication/ApiPerms.java

index f3b9ebc..bcadf40 100644 (file)
@@ -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 );
        }