From 3c256e28033725358b0732eefc1733209c2f7fa2 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 10 Feb 2016 13:26:35 +0100 Subject: [PATCH] NodeWithValue is generic Add diamond contructor to fix eclipse warnings. Change-Id: Ib7c35f70103a9dcb3fc101b91642c3822a242acb Signed-off-by: Robert Varga --- .../md/cluster/datastore/model/CompositeModel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/CompositeModel.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/CompositeModel.java index c16e951090..9f1f50973c 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/CompositeModel.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/CompositeModel.java @@ -262,13 +262,13 @@ public class CompositeModel { ImmutableLeafSetEntryNodeBuilder .create() .withNodeIdentifier( - new YangInstanceIdentifier.NodeWithValue(QName.create(TEST_QNAME, + new YangInstanceIdentifier.NodeWithValue<>(QName.create(TEST_QNAME, "shoe"), "nike")).withValue("nike").build(); final LeafSetEntryNode puma = ImmutableLeafSetEntryNodeBuilder .create() .withNodeIdentifier( - new YangInstanceIdentifier.NodeWithValue(QName.create(TEST_QNAME, + new YangInstanceIdentifier.NodeWithValue<>(QName.create(TEST_QNAME, "shoe"), "puma")).withValue("puma").build(); final LeafSetNode shoes = ImmutableLeafSetNodeBuilder @@ -282,13 +282,13 @@ public class CompositeModel { ImmutableLeafSetEntryNodeBuilder .create() .withNodeIdentifier( - (new YangInstanceIdentifier.NodeWithValue(QName.create(TEST_QNAME, + (new YangInstanceIdentifier.NodeWithValue<>(QName.create(TEST_QNAME, "number"), 5))).withValue(5).build(); final LeafSetEntryNode fifteen = ImmutableLeafSetEntryNodeBuilder .create() .withNodeIdentifier( - (new YangInstanceIdentifier.NodeWithValue(QName.create(TEST_QNAME, + (new YangInstanceIdentifier.NodeWithValue<>(QName.create(TEST_QNAME, "number"), 15))).withValue(15).build(); final LeafSetNode numbers = ImmutableLeafSetNodeBuilder -- 2.36.6