< prev index next >
src/java.desktop/share/classes/java/awt/MultipleGradientPaintContext.java
Print this page
@@ -1,7 +1,7 @@
/*
- * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -116,12 +116,12 @@
/** Used to determine if gradient colors are all opaque. */
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
for (int k = 0; k < 256; k++) {
SRGBtoLinearRGB[k] = convertSRGBtoLinearRGB(k);
@@ -185,11 +185,11 @@
} catch (NoninvertibleTransformException e) {
// just use identity transform in this case; better to show
// (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];
a01 = (float)m[2];
a11 = (float)m[3];
@@ -649,11 +649,11 @@
fillRaster(pixels, off, adjust, x, y, w, h); // delegate to subclass
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);
/**
* Took this cacheRaster code from GradientPaint. It appears to recycle
< prev index next >