Fix for Eclipse to not choke on this line of Java Generic (was red) 61/38261/1
authorMichael Vorburger <vorburger@redhat.com>
Mon, 2 May 2016 10:17:31 +0000 (12:17 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 2 May 2016 10:17:59 +0000 (12:17 +0200)
JDT has subtle differences to undocumented JLS re. generics vs javac

Change-Id: Ifd2f5c5e104d112026092ef9be8428271e2f1d91
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
netconf/tools/netconf-cli/src/main/java/org/opendaylight/netconf/cli/commands/input/Input.java

index 79ae79d648b198ff7139e53b4c724bab930b0ddf..cc86d7b58cca5ce750d49ce7bbdb64e59a916404 100644 (file)
@@ -37,9 +37,8 @@ public class Input {
         }
 
         final NormalizedNode<?, ?> input = args.iterator().next();
-        Preconditions
-                .checkArgument(input instanceof DataContainerChild<?, ?>, "Input container has to be of type Data Container Child.");
-        this.args = new ArrayList<>((Collection) input.getValue());
+        Preconditions.checkArgument(input instanceof DataContainerChild<?, ?>, "Input container has to be of type Data Container Child.");
+        this.args = new ArrayList<>((Collection<NormalizedNode<?, ?>>) input.getValue());
 
         for (final NormalizedNode<?, ?> arg : this.args) {
             nameToArg.put(arg.getNodeType().getLocalName(), arg);