< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2013, 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

@@ -44,11 +44,11 @@
 
     /**
      * Constants
      */
 
-    byte data[][];
+    byte[][] data;
 
     /**
      * Constructs a ByteLookupTable object from an array of byte
      * arrays representing a lookup table for each
      * band.  The offset will be subtracted from input

@@ -61,11 +61,11 @@
      *        table for each band
      * @throws IllegalArgumentException if {@code offset} is
      *         is less than 0 or if the length of {@code data}
      *         is less than 1
      */
-    public ByteLookupTable(int offset, byte data[][]) {
+    public ByteLookupTable(int offset, byte[][] data) {
         super(offset,data.length);
         numComponents = data.length;
         numEntries    = data[0].length;
         this.data = new byte[numComponents][];
         // Allocate the array and copy the data reference

@@ -85,11 +85,11 @@
      * @param data an array of bytes
      * @throws IllegalArgumentException if {@code offset} is
      *         is less than 0 or if the length of {@code data}
      *         is less than 1
      */
-    public ByteLookupTable(int offset, byte data[]) {
+    public ByteLookupTable(int offset, byte[] data) {
         super(offset,data.length);
         numComponents = 1;
         numEntries    = data.length;
         this.data = new byte[1][];
         this.data[0] = data;
< prev index next >