--- old/src/java.desktop/share/classes/java/awt/TexturePaintContext.java 2018-10-01 09:58:45.290026000 +0700 +++ new/src/java.desktop/share/classes/java/awt/TexturePaintContext.java 2018-10-01 09:58:44.814026000 +0700 @@ -1,5 +1,5 @@ /* - * 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 @@ -335,7 +335,7 @@ * pixels to blend, when the error values reach 1.0 we move to the * next pixel and reset them to 0.0. */ - public static int blend(int rgbs[], int xmul, int ymul) { + public static int blend(int[] rgbs, int xmul, int ymul) { // xmul/ymul are 31 bits wide, (0 => 2^31-1) // shift them to 12 bits wide, (0 => 2^12-1) xmul = (xmul >>> 19); @@ -372,10 +372,10 @@ static class Int extends TexturePaintContext { IntegerInterleavedRaster srcRas; - int inData[]; + int[] inData; int inOff; int inSpan; - int outData[]; + int[] outData; int outOff; int outSpan; boolean filter; @@ -422,7 +422,7 @@ if (normalx) { outSpan -= w; } - int rgbs[] = filter ? new int[4] : null; + int[] rgbs = filter ? new int[4] : null; for (int j = 0; j < h; j++) { if (normalx) { int in = inOff + rowy * inSpan + bWidth; @@ -508,10 +508,10 @@ static class Byte extends TexturePaintContext { ByteInterleavedRaster srcRas; - byte inData[]; + byte[] inData; int inOff; int inSpan; - byte outData[]; + byte[] outData; int outOff; int outSpan; @@ -628,11 +628,11 @@ static class ByteFilter extends TexturePaintContext { ByteInterleavedRaster srcRas; - int inPalette[]; - byte inData[]; + int[] inPalette; + byte[] inData; int inOff; int inSpan; - int outData[]; + int[] outData; int outOff; int outSpan; @@ -677,7 +677,7 @@ int rowy = y; int rowxerr = xerr; int rowyerr = yerr; - int rgbs[] = new int[4]; + int[] rgbs = new int[4]; for (int j = 0; j < h; j++) { x = rowx; y = rowy; @@ -764,7 +764,7 @@ int rowyerr = yerr; WritableRaster srcRas = this.srcRas; WritableRaster outRas = this.outRas; - int rgbs[] = filter ? new int[4] : null; + int[] rgbs = filter ? new int[4] : null; for (int j = 0; j < h; j++) { x = rowx; y = rowy;