< prev index next >

src/java.desktop/share/classes/java/awt/image/DataBufferShort.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -56,14 +56,14 @@
  * </a>
  */
 public final class DataBufferShort extends DataBuffer
 {
     /** The default data bank. */
-    short data[];
+    short[] data;
 
     /** All data banks */
-    short bankdata[][];
+    short[][] bankdata;
 
     /**
      * Constructs a short-based {@code DataBuffer} with a single bank and the
      * specified size.
      *

@@ -105,11 +105,11 @@
      * an associated image in video memory).
      *
      * @param dataArray The short array for the {@code DataBuffer}.
      * @param size The size of the {@code DataBuffer} bank.
      */
-    public DataBufferShort(short dataArray[], int size) {
+    public DataBufferShort(short[] dataArray, int size) {
         super(UNTRACKABLE, TYPE_SHORT, size);
         data = dataArray;
         bankdata = new short[1][];
         bankdata[0] = data;
     }

@@ -128,11 +128,11 @@
      *
      * @param dataArray The short array for the {@code DataBuffer}.
      * @param size The size of the {@code DataBuffer} bank.
      * @param offset The offset into the {@code dataArray}.
      */
-    public DataBufferShort(short dataArray[], int size, int offset) {
+    public DataBufferShort(short[] dataArray, int size, int offset) {
         super(UNTRACKABLE, TYPE_SHORT, size, 1, offset);
         data = dataArray;
         bankdata = new short[1][];
         bankdata[0] = data;
     }

@@ -149,11 +149,11 @@
      * an associated image in video memory).
      *
      * @param dataArray The short arrays for the {@code DataBuffer}.
      * @param size The size of the banks in the {@code DataBuffer}.
      */
-    public DataBufferShort(short dataArray[][], int size) {
+    public DataBufferShort(short[][] dataArray, int size) {
         super(UNTRACKABLE, TYPE_SHORT, size, dataArray.length);
         bankdata = dataArray.clone();
         data = bankdata[0];
     }
 

@@ -174,11 +174,11 @@
      *
      * @param dataArray The short arrays for the {@code DataBuffer}.
      * @param size The size of the banks in the {@code DataBuffer}.
      * @param offsets The offsets into each array.
      */
-    public DataBufferShort(short dataArray[][], int size, int offsets[]) {
+    public DataBufferShort(short[][] dataArray, int size, int[] offsets) {
         super(UNTRACKABLE, TYPE_SHORT, size, dataArray.length, offsets);
         bankdata = dataArray.clone();
         data = bankdata[0];
     }
 
< prev index next >