fixed sonar issue in AAIDeclarations.java 20/75520/3
authorSandeep J <sandeejh@in.ibm.com>
Wed, 9 Jan 2019 05:48:48 +0000 (11:18 +0530)
committerSandeep Jha <sandeejh@in.ibm.com>
Thu, 10 Jan 2019 16:56:36 +0000 (16:56 +0000)
fixed sonar issue

Issue-ID: CCSDK-525
Change-Id: Ib22bbd3a59994d77713eeb5e556211ddb3f662d5
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java

index 4a3f923..20f9265 100755 (executable)
@@ -147,6 +147,8 @@ public abstract class AAIDeclarations implements AAIClient {
 
     protected abstract Logger getLogger();
     public abstract AAIExecutorInterface getExecutor();
+                                                                                    
+    private static final String RELATIONSHIP_DATA= "Retrofitting relationship data: ";
 
 
     @Override
@@ -891,7 +893,7 @@ public abstract class AAIDeclarations implements AAIClient {
                 AAIServiceUtils.populateRelationshipDataFromPath(list);
             }
         } catch(Exception exc) {
-            getLogger().debug("Retrofiting relationship data: " + exc.getMessage());
+            getLogger().debug(RELATIONSHIP_DATA + exc.getMessage());
         }
 
         String preFix;
@@ -1226,7 +1228,7 @@ public abstract class AAIDeclarations implements AAIClient {
                 try {
                     getRelationshipListMethod = resourceClass.getMethod("getRelationshipList");
                 } catch(Exception exc) {
-                    getLogger().debug("Retrofiting relationship data: " + exc.getMessage());
+                    getLogger().debug(RELATIONSHIP_DATA + exc.getMessage());
                 }
 
                 if(getRelationshipListMethod != null){
@@ -1509,7 +1511,7 @@ public abstract class AAIDeclarations implements AAIClient {
             try {
                 getRelationshipListMethod = resourceClass.getMethod("getRelationshipList");
             } catch(Exception exc) {
-                getLogger().debug("Retrofiting relationship data: " + exc.getMessage());
+                getLogger().debug(RELATIONSHIP_DATA + exc.getMessage());
             }
             if(getRelationshipListMethod != null){
                 try {
@@ -1798,7 +1800,7 @@ public abstract class AAIDeclarations implements AAIClient {
             try {
                 getRelationshipListMethod = resourceClass.getMethod("getRelationshipList");
             } catch(Exception exc) {
-                getLogger().debug("Retrofiting relationship data: " + exc.getMessage());
+                getLogger().debug(RELATIONSHIP_DATA + exc.getMessage());
             }
             if(getRelationshipListMethod != null){
                 try {