X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fimpl%2FJsonNormalizedNodeBodyReader.java;h=265811a86b006ab50c70dc75a780100a2712f9d1;hb=d7b5e0619787f99844e19b9ef36f0a1793044f33;hp=bacd38720cc1d83196acc652dbe5f0c4cdfc5e92;hpb=3d4dc18c01ebca47030284dde81988a44424d821;p=controller.git 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(),