Sonar Fix: XmlParser.java 06/74706/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 17 Dec 2018 11:30:23 +0000 (17:00 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Mon, 17 Dec 2018 12:18:06 +0000 (12:18 +0000)
Fixed sonar issues/code-smells across this file.

Issue-ID: CCSDK-800
Change-Id: I7ed74ea9c8d37137e7e223d9488988e497d604b0
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
properties-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/prop/XmlParser.java

index 0b308c2..68b2f74 100644 (file)
@@ -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 {