jdk/src/share/classes/java/awt/image/DataBufferByte.java
changeset 22584 eed64ee05369
parent 5506 202f599c92aa
--- a/jdk/src/share/classes/java/awt/image/DataBufferByte.java	Tue Jan 28 12:50:53 2014 +0400
+++ b/jdk/src/share/classes/java/awt/image/DataBufferByte.java	Tue Jan 28 09:42:05 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, 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
@@ -156,7 +156,7 @@
      */
     public DataBufferByte(byte dataArray[][], int size) {
         super(UNTRACKABLE, TYPE_BYTE, size, dataArray.length);
-        bankdata = (byte[][]) dataArray.clone();
+        bankdata = dataArray.clone();
         data = bankdata[0];
     }
 
@@ -181,7 +181,7 @@
      */
     public DataBufferByte(byte dataArray[][], int size, int offsets[]) {
         super(UNTRACKABLE, TYPE_BYTE, size, dataArray.length, offsets);
-        bankdata = (byte[][]) dataArray.clone();
+        bankdata = dataArray.clone();
         data = bankdata[0];
     }
 
@@ -228,7 +228,7 @@
      */
     public byte[][] getBankData() {
         theTrackable.setUntrackable();
-        return (byte[][]) bankdata.clone();
+        return bankdata.clone();
     }
 
     /**