From 376932ba0a2feaee720d8e215a71b6fdbc7ebc80 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 3 May 2016 14:00:39 +0200 Subject: [PATCH 1/1] Fix a generic array warning ImmutableList.of() has 'fast' methods, which do not devolve to an array, fixing a warning about generic arrays Change-Id: Id81a2b185f4128601d047fec579a56c3196d3528 Signed-off-by: Robert Varga --- .../cluster/datastore/utils/NormalizedNodeAggregatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregatorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregatorTest.java index e1764954bc..2321fd1edf 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregatorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/NormalizedNodeAggregatorTest.java @@ -11,7 +11,7 @@ package org.opendaylight.controller.cluster.datastore.utils; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import com.google.common.base.Optional; -import com.google.common.collect.Lists; +import com.google.common.collect.ImmutableList; import com.google.common.util.concurrent.CheckedFuture; import java.util.Collection; import java.util.concurrent.ExecutionException; @@ -42,7 +42,7 @@ public class NormalizedNodeAggregatorTest { NormalizedNode expectedNode2 = ImmutableNodes.containerNode(CarsModel.CARS_QNAME); Optional> optional = NormalizedNodeAggregator.aggregate(YangInstanceIdentifier.builder().build(), - Lists.newArrayList( + ImmutableList.of( Optional.>of(getRootNode(expectedNode1, schemaContext)), Optional.>of(getRootNode(expectedNode2, schemaContext))), schemaContext); -- 2.36.6