Sonar Fix: XmlParser.java
[ccsdk/sli/plugins.git] / 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 {