diff options
author | Jegadeesh Babu <jegabab1@in.ibm.com> | 2019-02-20 18:09:40 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-22 14:10:04 +0000 |
commit | 0f1f9b1f892f5927fead4cedd863218bd648662d (patch) | |
tree | 7dc4e3c04fe01ad2a1fbfcfe92cb38c04f26bafd /appc-config/appc-data-services | |
parent | 226dd2c5d5988e90cb0c797d250315b3b92e735c (diff) |
Seperated assignment statement from expression
Sonar bug fix
Issue-ID: APPC-1468
Change-Id: I2ff7e01516cf7328357d2a48643947c782ce4fd9
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-config/appc-data-services')
-rw-r--r-- | appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java b/appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java index b7b52f717..83d47ba30 100644 --- a/appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java +++ b/appc-config/appc-data-services/provider/src/main/java/org/onap/appc/data/services/db/DGGeneralDBService.java @@ -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); } } |