Merge "Fix for Eclipse to not choke on this line of Java Generic (was red) "
authorTomas Cere <tcere@cisco.com>
Mon, 2 May 2016 12:28:35 +0000 (12:28 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 2 May 2016 12:28:35 +0000 (12:28 +0000)
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);