summaryrefslogtreecommitdiffstats
path: root/properties-node/provider
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-08 11:15:53 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-12-08 11:16:11 +0530
commit22818d31e0d2cc606932afaa3e353c3da2a317a9 (patch)
treee1a19925cc86e1bb994005ef89e447743d044912 /properties-node/provider
parentd50787e5a9489bb69c28b4e40a3194ad713ef78e (diff)
Sonar Fix: XmlParser.java
Fixed sonar issues/code-smells across this file. Issue-ID: CCSDK-800 Change-Id: I19a6ed3632201200b7d0e32885be6fb932bcd724 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'properties-node/provider')
-rw-r--r--properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java b/properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java
index c9581af5..0b308c2b 100644
--- a/properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java
+++ b/properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java
@@ -2,8 +2,9 @@
* ============LICENSE_START=======================================================
* openECOMP : SDN-C
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
- * reserved.
+ * Copyright (C) 2017 AT&T Intellectual Property. 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.
@@ -76,6 +77,9 @@ public final class XmlParser {
return properties;
}
+ StringBuilder currentName = new StringBuilder();
+ StringBuilder currentValue = new StringBuilder();
+
public Handler(Set<String> listNameList) {
super();
this.listNameList = listNameList;
@@ -83,9 +87,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 {