< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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

@@ -50,14 +50,14 @@
  */
 
 public final class DataBufferDouble extends DataBuffer {
 
     /** The array of data banks. */
-    double bankdata[][];
+    double[][] bankdata;
 
     /** A reference to the default data bank. */
-    double data[];
+    double[] data;
 
     /**
      * Constructs a {@code double}-based {@code DataBuffer}
      * with a specified size.
      *

@@ -102,11 +102,11 @@
      *
      * @param dataArray An array of {@code double}s to be used as the
      *                  first and only bank of this {@code DataBuffer}.
      * @param size The number of elements of the array to be used.
      */
-    public DataBufferDouble(double dataArray[], int size) {
+    public DataBufferDouble(double[] dataArray, int size) {
         super(UNTRACKABLE, TYPE_DOUBLE, size);
         data = dataArray;
         bankdata = new double[1][];
         bankdata[0] = data;
     }

@@ -127,11 +127,11 @@
      *                  first and only bank of this {@code DataBuffer}.
      * @param size The number of elements of the array to be used.
      * @param offset The offset of the first element of the array
      *               that will be used.
      */
-    public DataBufferDouble(double dataArray[], int size, int offset) {
+    public DataBufferDouble(double[] dataArray, int size, int offset) {
         super(UNTRACKABLE, TYPE_DOUBLE, size, 1, offset);
         data = dataArray;
         bankdata = new double[1][];
         bankdata[0] = data;
     }

@@ -150,11 +150,11 @@
      *
      * @param dataArray An array of arrays of {@code double}s to be
      *        used as the banks of this {@code DataBuffer}.
      * @param size The number of elements of each array to be used.
      */
-    public DataBufferDouble(double dataArray[][], int size) {
+    public DataBufferDouble(double[][] dataArray, int size) {
         super(UNTRACKABLE, TYPE_DOUBLE, size, dataArray.length);
         bankdata = dataArray.clone();
         data = bankdata[0];
     }
 

@@ -174,11 +174,11 @@
      * @param dataArray An array of arrays of {@code double}s to be
      *        used as the banks of this {@code DataBuffer}.
      * @param size The number of elements of each array to be used.
      * @param offsets An array of integer offsets, one for each bank.
      */
-    public DataBufferDouble(double dataArray[][], int size, int offsets[]) {
+    public DataBufferDouble(double[][] dataArray, int size, int[] offsets) {
         super(UNTRACKABLE, TYPE_DOUBLE, size, dataArray.length, offsets);
         bankdata = dataArray.clone();
         data = bankdata[0];
     }
 
< prev index next >