--- old/src/java.desktop/share/classes/java/awt/MultipleGradientPaintContext.java 2018-10-01 09:58:35.534026000 +0700 +++ new/src/java.desktop/share/classes/java/awt/MultipleGradientPaintContext.java 2018-10-01 09:58:35.030026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 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 @@ -118,8 +118,8 @@ private int transparencyTest; /** Color space conversion lookup tables. */ - private static final int SRGBtoLinearRGB[] = new int[256]; - private static final int LinearRGBtoSRGB[] = new int[256]; + private static final int[] SRGBtoLinearRGB = new int[256]; + private static final int[] LinearRGBtoSRGB = new int[256]; static { // build the tables @@ -187,7 +187,7 @@ // (incorrect) results than to throw an exception and/or no-op tInv = new AffineTransform(); } - double m[] = new double[6]; + double[] m = new double[6]; tInv.getMatrix(m); a00 = (float)m[0]; a10 = (float)m[1]; @@ -651,7 +651,7 @@ return raster; } - protected abstract void fillRaster(int pixels[], int off, int adjust, + protected abstract void fillRaster(int[] pixels, int off, int adjust, int x, int y, int w, int h);