summaryrefslogtreecommitdiffstats
path: root/libjava/java/awt/image/ShortLookupTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/image/ShortLookupTable.java')
-rw-r--r--libjava/java/awt/image/ShortLookupTable.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/libjava/java/awt/image/ShortLookupTable.java b/libjava/java/awt/image/ShortLookupTable.java
index 223d03bf53b..36beb1df540 100644
--- a/libjava/java/awt/image/ShortLookupTable.java
+++ b/libjava/java/awt/image/ShortLookupTable.java
@@ -61,7 +61,7 @@ public class ShortLookupTable extends LookupTable
*
* @param offset Offset to be subtracted.
* @param data Array of lookup tables.
- * @exception IllegalArgumentException if offset < 0 or data.length < 1.
+ * @exception IllegalArgumentException if offset &lt; 0 or data.length &lt; 1.
*/
public ShortLookupTable(int offset, short[][] data)
throws IllegalArgumentException
@@ -78,7 +78,7 @@ public class ShortLookupTable extends LookupTable
*
* @param offset Offset to be subtracted.
* @param data Lookup table for all components.
- * @exception IllegalArgumentException if offset < 0.
+ * @exception IllegalArgumentException if offset &lt; 0.
*/
public ShortLookupTable(int offset, short[] data)
throws IllegalArgumentException
@@ -107,14 +107,14 @@ public class ShortLookupTable extends LookupTable
* translation arrays.
*
* @param src Component values of a pixel.
- * @param dest Destination array for values, or null.
+ * @param dst Destination array for values, or null.
* @return Translated values for the pixel.
*/
public int[] lookupPixel(int[] src, int[] dst)
throws ArrayIndexOutOfBoundsException
{
if (dst == null)
- dst = new int[numComponents];
+ dst = new int[src.length];
if (data.length == 1)
for (int i=0; i < src.length; i++)
@@ -140,14 +140,14 @@ public class ShortLookupTable extends LookupTable
* translation arrays.
*
* @param src Component values of a pixel.
- * @param dest Destination array for values, or null.
+ * @param dst Destination array for values, or null.
* @return Translated values for the pixel.
*/
public short[] lookupPixel(short[] src, short[] dst)
throws ArrayIndexOutOfBoundsException
{
if (dst == null)
- dst = new short[numComponents];
+ dst = new short[src.length];
if (data.length == 1)
for (int i=0; i < src.length; i++)
OpenPOWER on IntegriCloud