From f2cb0a21b9b7d4a48f25a34c9a57197cbec5dd79 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Sat, 8 Dec 2018 12:42:29 +0530 Subject: Sonar Fix: sshapi-call-node-provider-XmlParer.java Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-802 Change-Id: I5be30cd2270cda66108489456ac6566b1aa6dec7 Signed-off-by: Arundathi Patil --- .../org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sshapi-call-node') diff --git a/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java b/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java index e31754bc..f386d401 100644 --- a/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java +++ b/sshapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/sshapicall/model/XmlParser.java @@ -3,6 +3,8 @@ * openECOMP : SDN-C * ================================================================================ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright © 2018 IBM. * ================================================================================ * Copyright (C) 2018 Samsung Electronics. All rights * reserved. @@ -79,6 +81,9 @@ public final class XmlParser { return properties; } + StringBuilder currentName = new StringBuilder(); + StringBuilder currentValue = new StringBuilder(); + public Handler(Set listNameList) { super(); this.listNameList = listNameList; @@ -86,9 +91,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 { -- cgit 1.2.3-korg