From 030966e12aad3950e56ebad6b3a665e38ebc6b95 Mon Sep 17 00:00:00 2001 From: Jakub Toth Date: Thu, 4 Jun 2015 10:48:47 +0200 Subject: [PATCH] Bug 2358 - Decrease Technical Debt fix compilation eclipse ID error Change-Id: I39398878338a9c02d6cc8219aa76d1c9e15c8e10 Signed-off-by: Jakub Toth (cherry picked from commit d7b5e0619787f99844e19b9ef36f0a1793044f33) --- .../sal/rest/impl/JsonNormalizedNodeBodyReader.java | 6 +++--- .../sal/rest/impl/XmlNormalizedNodeBodyReader.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/JsonNormalizedNodeBodyReader.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/JsonNormalizedNodeBodyReader.java index bacd38720c..265811a86b 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/JsonNormalizedNodeBodyReader.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/JsonNormalizedNodeBodyReader.java @@ -93,8 +93,8 @@ public class JsonNormalizedNodeBodyReader extends AbstractIdentifierAwareJaxRsPr jsonParser.parse(reader); NormalizedNode result = resultHolder.getResult(); - List iiToDataList = new ArrayList<>(); - InstanceIdentifierContext newIIContext; + final List iiToDataList = new ArrayList<>(); + InstanceIdentifierContext newIIContext; if (isPost()) { while (result instanceof AugmentationNode || result instanceof ChoiceNode) { @@ -114,7 +114,7 @@ public class JsonNormalizedNodeBodyReader extends AbstractIdentifierAwareJaxRsPr } } - YangInstanceIdentifier fullIIToData = YangInstanceIdentifier.create(Iterables.concat( + final YangInstanceIdentifier fullIIToData = YangInstanceIdentifier.create(Iterables.concat( path.getInstanceIdentifier().getPathArguments(), iiToDataList)); newIIContext = new InstanceIdentifierContext<>(fullIIToData, path.getSchemaNode(), path.getMountPoint(), diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/XmlNormalizedNodeBodyReader.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/XmlNormalizedNodeBodyReader.java index 817d25847a..d2c75f7e0c 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/XmlNormalizedNodeBodyReader.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/XmlNormalizedNodeBodyReader.java @@ -133,7 +133,7 @@ public class XmlNormalizedNodeBodyReader extends AbstractIdentifierAwareJaxRsPro final String docRootElm = doc.getDocumentElement().getLocalName(); final List iiToDataList = new ArrayList<>(); - InstanceIdentifierContext outIIContext; + InstanceIdentifierContext outIIContext; // FIXME the factory instance should be cached if the schema context is the same -- 2.36.6