Seperated assignment statement from expression 30/78830/3
authorJegadeesh Babu <jegabab1@in.ibm.com>
Wed, 20 Feb 2019 12:39:40 +0000 (18:09 +0530)
committerTakamune Cho <takamune.cho@att.com>
Fri, 22 Feb 2019 14:10:04 +0000 (14:10 +0000)
Sonar bug fix

Issue-ID: APPC-1468
Change-Id: I2ff7e01516cf7328357d2a48643947c782ce4fd9
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java

index b7b52f7..83d47ba 100644 (file)
@@ -6,6 +6,8 @@
  * ================================================================================
  * Copyright (C) 2017 Amdocs
  * =============================================================================
+ * Modifications 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.
  * You may obtain a copy of the License at
@@ -241,7 +243,8 @@ public class DGGeneralDBService {
 
             Set<String> keySet = ctx.getAttributeKeySet();
             for (String key : keySet) {
-                if (StringUtils.isNotBlank(key) && key.startsWith(prefix = ".")) {
+              //By default, context property prefixed with dot.
+                if (StringUtils.isNotBlank(key) && key.startsWith(".")) {
                     ctx.getAttributeKeySet().remove(key);
                 }
             }