# HG changeset patch # User henryjen # Date 1395244850 25200 # Node ID a14db4279874f2a18dba9d31fa7b88a053c68745 # Parent f985a8f16d58fdd76080b29c8db0a5cd0d5157b6 8037743: 2d nightly: wrong class cast to DigraphNode Reviewed-by: prr, serb diff -r f985a8f16d58 -r a14db4279874 jdk/src/share/classes/javax/imageio/spi/DigraphNode.java --- a/jdk/src/share/classes/javax/imageio/spi/DigraphNode.java Wed Mar 19 18:27:31 2014 +0400 +++ b/jdk/src/share/classes/javax/imageio/spi/DigraphNode.java Wed Mar 19 09:00:50 2014 -0700 @@ -132,17 +132,17 @@ * appropriately. */ public void dispose() { - @SuppressWarnings("unchecked") - DigraphNode[] inNodesArray = (DigraphNode[])inNodes.toArray(); + Object[] inNodesArray = inNodes.toArray(); for(int i=0; i node = inNodesArray[i]; + @SuppressWarnings("unchecked") + DigraphNode node = (DigraphNode)inNodesArray[i]; node.removeEdge(this); } - @SuppressWarnings("unchecked") - DigraphNode[] outNodesArray = (DigraphNode[])outNodes.toArray(); + Object[] outNodesArray = outNodes.toArray(); for(int i=0; i node = outNodesArray[i]; + @SuppressWarnings("unchecked") + DigraphNode node = (DigraphNode)outNodesArray[i]; removeEdge(node); } }