aboutsummaryrefslogtreecommitdiffstats
path: root/sshapi-call-node/provider
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-08 12:42:29 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-12-08 12:42:41 +0530
commitf2cb0a21b9b7d4a48f25a34c9a57197cbec5dd79 (patch)
tree7a3eaec1198db7f516745e84963fd3f5e10f233d /sshapi-call-node/provider
parentd50787e5a9489bb69c28b4e40a3194ad713ef78e (diff)
Sonar Fix: sshapi-call-node-provider-XmlParer.java
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-802 Change-Id: I5be30cd2270cda66108489456ac6566b1aa6dec7 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'sshapi-call-node/provider')
-rw-r--r--sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java b/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java
index e31754bc..f386d401 100644
--- a/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java
+++ b/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java
@@ -3,6 +3,8 @@
* openECOMP : SDN-C
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ *
+ * Modifications Copyright © 2018 IBM.
* ================================================================================
* Copyright (C) 2018 Samsung Electronics. All rights
* reserved.
@@ -79,6 +81,9 @@ public final class XmlParser {
return properties;
}
+ StringBuilder currentName = new StringBuilder();
+ StringBuilder currentValue = new StringBuilder();
+
public Handler(Set<String> listNameList) {
super();
this.listNameList = listNameList;
@@ -86,9 +91,6 @@ public final class XmlParser {
this.listNameList = new HashSet<>();
}
- StringBuilder currentName = new StringBuilder();
- StringBuilder currentValue = new StringBuilder();
-
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException {