summaryrefslogtreecommitdiffstats
path: root/properties-node
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-17 17:00:23 +0530
committerArundathi Patil <arundpil@in.ibm.com>2018-12-17 12:18:06 +0000
commit6f43bd02d4851c97d857cf65efbd581a9078c3d8 (patch)
treea26c4c1e32306700920e0c26930adffb3aa129a7 /properties-node
parent0d1a8d87eadc7a6a6d46b096752a2b80f4cfae9e (diff)
Sonar Fix: XmlParser.java
Fixed sonar issues/code-smells across this file. Issue-ID: CCSDK-800 Change-Id: I7ed74ea9c8d37137e7e223d9488988e497d604b0 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'properties-node')
-rw-r--r--properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java11
1 files changed, 5 insertions, 6 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 0b308c2b4..68b2f74ec 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,7 @@
* ============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");
@@ -73,10 +72,6 @@ public final class XmlParser {
private Map<String, String> properties = new HashMap<>();
- public Map<String, String> getProperties() {
- return properties;
- }
-
StringBuilder currentName = new StringBuilder();
StringBuilder currentValue = new StringBuilder();
@@ -87,6 +82,10 @@ public final class XmlParser {
this.listNameList = new HashSet<>();
}
+ public Map<String, String> getProperties() {
+ return properties;
+ }
+
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException {