From: Robert Varga Date: Tue, 3 May 2016 12:00:39 +0000 (+0200) Subject: Fix a generic array warning X-Git-Tag: release/boron~192 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=376932ba0a2feaee720d8e215a71b6fdbc7ebc80;hp=782f06145be869e3f541a199915212f8188488ae 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 --- 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);