src/share/classes/com/sun/imageio/plugins/jpeg/JFIFMarkerSegment.java

Print this page

        

@@ -1446,11 +1446,11 @@
         }
 
         protected Object clone () {
             ICCMarkerSegment newGuy = (ICCMarkerSegment) super.clone();
             if (profile != null) {
-                newGuy.profile = (byte[]) profile.clone();
+                newGuy.profile = profile.clone();
             }
             return newGuy;
         }
 
         boolean addData(JPEGBuffer buffer) throws IOException {