--- old/src/share/classes/com/sun/imageio/plugins/gif/GIFImageMetadata.java 2014-02-20 12:53:24.727268686 -0800 +++ new/src/share/classes/com/sun/imageio/plugins/gif/GIFImageMetadata.java 2014-02-20 12:53:24.573935346 -0800 @@ -84,17 +84,17 @@ // Fields from ApplicationExtension // List of byte[] - public List applicationIDs = null; // new ArrayList(); + public List applicationIDs = null; // List of byte[] - public List authenticationCodes = null; // new ArrayList(); + public List authenticationCodes = null; // List of byte[] - public List applicationData = null; // new ArrayList(); + public List applicationData = null; // Fields from CommentExtension // List of byte[] - public List comments = null; // new ArrayList(); + public List comments = null; protected GIFImageMetadata(boolean standardMetadataFormatSupported, String nativeMetadataFormatName, @@ -225,13 +225,13 @@ for (int i = 0; i < numAppExtensions; i++) { IIOMetadataNode appExtNode = new IIOMetadataNode("ApplicationExtension"); - byte[] applicationID = (byte[])applicationIDs.get(i); + byte[] applicationID = applicationIDs.get(i); appExtNode.setAttribute("applicationID", toISO8859(applicationID)); - byte[] authenticationCode = (byte[])authenticationCodes.get(i); + byte[] authenticationCode = authenticationCodes.get(i); appExtNode.setAttribute("authenticationCode", toISO8859(authenticationCode)); - byte[] appData = (byte[])applicationData.get(i); + byte[] appData = applicationData.get(i); appExtNode.setUserObject(appData.clone()); node.appendChild(appExtNode); } @@ -246,7 +246,7 @@ for (int i = 0; i < numComments; i++) { IIOMetadataNode commentNode = new IIOMetadataNode("CommentExtension"); - byte[] comment = (byte[])comments.get(i); + byte[] comment = comments.get(i); commentNode.setAttribute("value", toISO8859(comment)); node.appendChild(commentNode); } @@ -374,7 +374,7 @@ if (comments == null) { return null; } - Iterator commentIter = comments.iterator(); + Iterator commentIter = comments.iterator(); if (!commentIter.hasNext()) { return null; } @@ -383,7 +383,7 @@ IIOMetadataNode node = null; // scratch node while (commentIter.hasNext()) { - byte[] comment = (byte[])commentIter.next(); + byte[] comment = commentIter.next(); String s = null; try { s = new String(comment, "ISO-8859-1");