--- old/src/java.desktop/unix/classes/sun/java2d/xr/XRPaints.java 2018-10-01 10:05:27.954026000 +0700 +++ new/src/java.desktop/unix/classes/sun/java2d/xr/XRPaints.java 2018-10-01 10:05:27.530026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 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 @@ -108,7 +108,7 @@ GradientPaint paint = (GradientPaint) pt; int repeat = paint.isCyclic() ? XRUtils.RepeatReflect : XRUtils.RepeatPad; - float fractions[] = {0, 1}; + float[] fractions = {0, 1}; int[] pixels = convertToIntArgbPixels(new Color[] { paint.getColor1(), paint.getColor2() }); Point2D pt1 = paint.getPoint1();