aboutsummaryrefslogtreecommitdiffstats
path: root/feature-server-pool/src/main
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-06-24 16:24:26 -0400
committerTaka Cho <takamune.cho@att.com>2020-06-26 10:49:00 -0400
commit4744cd180b629a2cf1e44fbe262a1289b19a0caa (patch)
tree73b12083b40bdc4975a6a33526165a6bb2dc17a2 /feature-server-pool/src/main
parent07634512d580fa9e14c34751fd42b51bf9b17a63 (diff)
sonar fix - FeatureServerPool
- sonar thinks one block of comments are code, so changed some syntax in comments - not more than one break or continue statement Issue-ID: POLICY-2616 Change-Id: Ia35b73584f5a8492320c4beaa069ba7f903ce268 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'feature-server-pool/src/main')
-rw-r--r--feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java15
1 files changed, 5 insertions, 10 deletions
diff --git a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
index 23da0712..cce7a09d 100644
--- a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
+++ b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/FeatureServerPool.java
@@ -120,8 +120,8 @@ public class FeatureServerPool
* Example <field-list>: requestID,CommonHeader.RequestID
*
* Table generated from this example has length 2:
- * table[0] = {"requestID"}
- * table[1] = {"CommonHeader", "RequestID"}
+ * table 0 is "requestID"
+ * table 1 is "CommonHeader", "RequestID"
*/
private static HashMap<String, String[][]> topicToPaths = new HashMap<>();
@@ -319,17 +319,12 @@ public class FeatureServerPool
path[path.length - 1] = fieldName;
}
keyword = sco.getString(path);
+
if (keyword != null) {
- if (conversionFunctionName == null) {
- // We found a keyword -- we don't need to try other paths,
- // so we should break out of the loop
- break;
+ if (conversionFunctionName != null) {
+ keyword = Keyword.convertKeyword(keyword, conversionFunctionName);
}
-
- // we have post-processing to do
- keyword = Keyword.convertKeyword(keyword, conversionFunctionName);
if (keyword != null) {
- // conversion was successful
break;
}
}