--- old/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java 2014-02-20 12:53:29.413935546 -0800 +++ new/src/share/classes/com/sun/imageio/plugins/gif/GIFWritableImageMetadata.java 2014-02-20 12:53:29.263935540 -0800 @@ -258,14 +258,14 @@ } if (applicationIDs == null) { - applicationIDs = new ArrayList(); - authenticationCodes = new ArrayList(); - applicationData = new ArrayList(); + applicationIDs = new ArrayList<>(); + authenticationCodes = new ArrayList<>(); + applicationData = new ArrayList<>(); } applicationIDs.add(fromISO8859(applicationIDString)); authenticationCodes.add(fromISO8859(authenticationCodeString)); - applicationData.add(applicationExtensionData); + applicationData.add((byte[]) applicationExtensionData); } else if (name.equals("CommentExtensions")) { Node commentExtension = node.getFirstChild(); if (commentExtension != null) { @@ -276,7 +276,7 @@ } if (comments == null) { - comments = new ArrayList(); + comments = new ArrayList<>(); } String comment = @@ -367,7 +367,7 @@ String value = getAttribute(childNode, "value"); byte[] comment = fromISO8859(value); if (comments == null) { - comments = new ArrayList(); + comments = new ArrayList<>(); } comments.add(comment); }