Sonar bug fix
Issue-ID: APPC-1468
Change-Id: I2ff7e01516cf7328357d2a48643947c782ce4fd9
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
* ================================================================================
* 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
* 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
Set<String> keySet = ctx.getAttributeKeySet();
for (String key : keySet) {
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);
}
}
ctx.getAttributeKeySet().remove(key);
}
}