diff options
Diffstat (limited to 'netx/net/sourceforge/jnlp/Node.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/Node.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/Node.java b/netx/net/sourceforge/jnlp/Node.java index 0868103..a3f0aa2 100644 --- a/netx/net/sourceforge/jnlp/Node.java +++ b/netx/net/sourceforge/jnlp/Node.java @@ -47,12 +47,12 @@ class Node { Node[] getChildNodes() { if (children == null) { - List list = new ArrayList(); + List<Node> list = new ArrayList<Node>(); for (Enumeration e = xml.enumerateChildren(); e.hasMoreElements();) list.add( new Node((XMLElement)e.nextElement()) ); - children = (Node[]) list.toArray( new Node[list.size()] ); + children = list.toArray( new Node[list.size()] ); for (int i=0; i < children.length-1; i++) children[i].next = children[i+1]; |