--- old/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ImageDataContentHandler.java 2015-10-22 23:49:44.000000000 +0200 +++ new/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ImageDataContentHandler.java 2015-10-22 23:49:44.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -131,9 +131,9 @@ + obj.getClass().toString()); } ImageWriter writer = null; - Iterator i = ImageIO.getImageWritersByMIMEType(type); + Iterator i = ImageIO.getImageWritersByMIMEType(type); if (i.hasNext()) { - writer = (ImageWriter)i.next(); + writer = i.next(); } if (writer != null) { ImageOutputStream stream = null;