diff options
Diffstat (limited to 'libjava/classpath/java/awt/image/ShortLookupTable.java')
-rw-r--r-- | libjava/classpath/java/awt/image/ShortLookupTable.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libjava/classpath/java/awt/image/ShortLookupTable.java b/libjava/classpath/java/awt/image/ShortLookupTable.java index 858818cf26d..3e276fe9f62 100644 --- a/libjava/classpath/java/awt/image/ShortLookupTable.java +++ b/libjava/classpath/java/awt/image/ShortLookupTable.java @@ -58,7 +58,7 @@ public class ShortLookupTable extends LookupTable * Offset is subtracted from pixel values when looking up in the translation * tables. If data.length is one, the same table is applied to all pixel * components. - * + * * @param offset Offset to be subtracted. * @param data Array of lookup tables. * @exception IllegalArgumentException if offset < 0 or data.length < 1. @@ -67,9 +67,9 @@ public class ShortLookupTable extends LookupTable throws IllegalArgumentException { super(offset, data.length); - + // tests show that Sun's implementation creates a new array to store the - // references from the incoming 'data' array - not sure why, but we'll + // references from the incoming 'data' array - not sure why, but we'll // match that behaviour just in case it matters... this.data = new short[data.length][]; for (int i = 0; i < data.length; i++) @@ -81,9 +81,9 @@ public class ShortLookupTable extends LookupTable * * Offset is subtracted from pixel values when looking up in the translation * table. The same table is applied to all pixel components. - * + * * @param offset Offset to be subtracted. - * @param data Lookup table for all components (<code>null</code> not + * @param data Lookup table for all components (<code>null</code> not * permitted). * @exception IllegalArgumentException if offset < 0. */ @@ -96,10 +96,10 @@ public class ShortLookupTable extends LookupTable this.data = new short[][] {data}; } - /** + /** * Return the lookup tables. This is a reference to the actual table, so - * modifying the contents of the returned array will modify the lookup table. - * + * modifying the contents of the returned array will modify the lookup table. + * * @return The lookup table. */ public final short[][] getTable() @@ -136,7 +136,7 @@ public class ShortLookupTable extends LookupTable else for (int i = 0; i < src.length; i++) dst[i] = data[i][src[i] - offset]; - + return dst; } @@ -170,7 +170,7 @@ public class ShortLookupTable extends LookupTable else for (int i = 0; i < src.length; i++) dst[i] = data[i][((int) src[i]) - offset]; - + return dst; } |