aboutsummaryrefslogtreecommitdiffstats
path: root/restconf-client/provider
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-01-07 17:31:33 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-07 17:31:33 +0000
commit40cb9baad4087a6e350c45e1e8775680c9089a94 (patch)
tree1b7645396a8d47fed4ae3b61840c76e47fdae5a6 /restconf-client/provider
parentea826e12287457a79dd40a6414f7df22f378d384 (diff)
parentaab34607358d2a9f8f6dd1879dc3c5bc26e796b0 (diff)
Merge "Sonar fix: LeafListHolderNode.java"
Diffstat (limited to 'restconf-client/provider')
-rw-r--r--restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/yangserializers/pnserializer/LeafListHolderNode.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/yangserializers/pnserializer/LeafListHolderNode.java b/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/yangserializers/pnserializer/LeafListHolderNode.java
index 985bc1da..46ab5bb6 100644
--- a/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/yangserializers/pnserializer/LeafListHolderNode.java
+++ b/restconf-client/provider/src/main/java/org/onap/ccsdk/sli/plugins/yangserializers/pnserializer/LeafListHolderNode.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
* ================================================================================
+ * Modifications Copyright © 2018 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
@@ -28,6 +30,8 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicException;
*/
public class LeafListHolderNode extends HolderNode<LeafListHolderChild> implements DataNodeChild {
+ private static final String node = " holder node";
+
/**
* Creates an instance of LeafListHolderNode.
*
@@ -50,7 +54,7 @@ public class LeafListHolderNode extends HolderNode<LeafListHolderChild> implemen
Namespace valueNs,
Object appInfo) throws SvcLogicException {
throw new SvcLogicException("Leaf cannot be child of leaf-list" +
- " holder node");
+ node);
}
@Override
@@ -58,7 +62,7 @@ public class LeafListHolderNode extends HolderNode<LeafListHolderChild> implemen
NodeType type,
Object appInfo) throws SvcLogicException {
throw new SvcLogicException("Container cannot be child of leaf-list" +
- " holder node");
+ node);
}
@Override
@@ -67,7 +71,7 @@ public class LeafListHolderNode extends HolderNode<LeafListHolderChild> implemen
NodeType type,
Object appInfo) throws SvcLogicException {
throw new SvcLogicException("List cannot be child of leaf-list" +
- " holder node");
+ node);
}
@Override