From: Arundathi Patil Date: Mon, 17 Dec 2018 11:30:23 +0000 (+0530) Subject: Sonar Fix: XmlParser.java X-Git-Tag: 0.4.0~19^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6f43bd02d4851c97d857cf65efbd581a9078c3d8;p=ccsdk%2Fsli%2Fplugins.git Sonar Fix: XmlParser.java Fixed sonar issues/code-smells across this file. Issue-ID: CCSDK-800 Change-Id: I7ed74ea9c8d37137e7e223d9488988e497d604b0 Signed-off-by: Arundathi Patil --- 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 0b308c2b..68b2f74e 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 properties = new HashMap<>(); - public Map 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 getProperties() { + return properties; + } + @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {