From: Jakub Toth Date: Thu, 4 Jun 2015 08:48:47 +0000 (+0200) Subject: Bug 2358 - Decrease Technical Debt X-Git-Tag: release/lithium~76 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=d7b5e0619787f99844e19b9ef36f0a1793044f33 Bug 2358 - Decrease Technical Debt fix compilation eclipse ID error Change-Id: I39398878338a9c02d6cc8219aa76d1c9e15c8e10 Signed-off-by: Jakub Toth --- 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