--- old/src/java.desktop/share/classes/java/awt/image/SampleModel.java 2018-10-01 09:59:55.430026000 +0700 +++ new/src/java.desktop/share/classes/java/awt/image/SampleModel.java 2018-10-01 09:59:54.958026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, 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 @@ -234,9 +234,9 @@ * @throws ArrayIndexOutOfBoundsException if the coordinates are * not in bounds, or if iArray is too small to hold the output. */ - public int[] getPixel(int x, int y, int iArray[], DataBuffer data) { + public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { - int pixels[]; + int[] pixels; if (iArray != null) pixels = iArray; @@ -698,10 +698,10 @@ * @throws ArrayIndexOutOfBoundsException if the coordinates are * not in bounds, or if fArray is too small to hold the output. */ - public float[] getPixel(int x, int y, float fArray[], + public float[] getPixel(int x, int y, float[] fArray, DataBuffer data) { - float pixels[]; + float[] pixels; if (fArray != null) pixels = fArray; @@ -729,10 +729,10 @@ * @throws ArrayIndexOutOfBoundsException if the coordinates are * not in bounds, or if dArray is too small to hold the output. */ - public double[] getPixel(int x, int y, double dArray[], + public double[] getPixel(int x, int y, double[] dArray, DataBuffer data) { - double pixels[]; + double[] pixels; if(dArray != null) pixels = dArray; @@ -764,9 +764,9 @@ * not in bounds, or if iArray is too small to hold the output. */ public int[] getPixels(int x, int y, int w, int h, - int iArray[], DataBuffer data) { + int[] iArray, DataBuffer data) { - int pixels[]; + int[] pixels; int Offset=0; int x1 = x + w; int y1 = y + h; @@ -812,9 +812,9 @@ * not in bounds, or if fArray is too small to hold the output. */ public float[] getPixels(int x, int y, int w, int h, - float fArray[], DataBuffer data) { + float[] fArray, DataBuffer data) { - float pixels[]; + float[] pixels; int Offset = 0; int x1 = x + w; int y1 = y + h; @@ -860,8 +860,8 @@ * not in bounds, or if dArray is too small to hold the output. */ public double[] getPixels(int x, int y, int w, int h, - double dArray[], DataBuffer data) { - double pixels[]; + double[] dArray, DataBuffer data) { + double[] pixels; int Offset = 0; int x1 = x + w; int y1 = y + h; @@ -976,8 +976,8 @@ * hold the output. */ public int[] getSamples(int x, int y, int w, int h, int b, - int iArray[], DataBuffer data) { - int pixels[]; + int[] iArray, DataBuffer data) { + int[] pixels; int Offset=0; int x1 = x + w; int y1 = y + h; @@ -1024,9 +1024,9 @@ * hold the output. */ public float[] getSamples(int x, int y, int w, int h, - int b, float fArray[], + int b, float[] fArray, DataBuffer data) { - float pixels[]; + float[] pixels; int Offset=0; int x1 = x + w; int y1 = y + h; @@ -1073,9 +1073,9 @@ * hold the output. */ public double[] getSamples(int x, int y, int w, int h, - int b, double dArray[], + int b, double[] dArray, DataBuffer data) { - double pixels[]; + double[] pixels; int Offset=0; int x1 = x + w; int y1 = y + h; @@ -1114,7 +1114,7 @@ * @throws ArrayIndexOutOfBoundsException if the coordinates are * not in bounds, or if iArray is too small to hold the input. */ - public void setPixel(int x, int y, int iArray[], DataBuffer data) { + public void setPixel(int x, int y, int[] iArray, DataBuffer data) { for (int i=0; i