Commit 59ac5a17 by Tom Tromey Committed by Tom Tromey

ColorModel.java: Re-merged with Classpath.

	* java/awt/image/ColorModel.java: Re-merged with Classpath.
	* java/awt/image/ImageFilter.java: Likewise.

From-SVN: r63024
parent 5b0512df
2003-02-17 Tom Tromey <tromey@redhat.com>
* java/awt/image/ColorModel.java: Re-merged with Classpath.
* java/awt/image/ImageFilter.java: Likewise.
2003-02-17 Raif S. Naffah <raif@fl.net.au>
* java/math/BigInteger.java (euclidInv): Return array of
......
......@@ -142,7 +142,7 @@ public abstract class ColorModel implements Transparency
bits_sum |= bits [i];
}
if ((bits.length < cspace.numComponents)
if ((bits.length < cspace.getNumComponents())
|| (bits_sum < 1))
throw new IllegalArgumentException ();
......
......@@ -108,15 +108,9 @@ public class ImageFilter implements ImageConsumer, Cloneable
throw new IllegalArgumentException("null argument for ImageFilter.getFilterInstance(ImageConsumer)");
consumer = ic;
try {
ImageFilter f = (ImageFilter)clone();
consumer = null;
return f;
} catch ( CloneNotSupportedException cnse ) {
cnse.printStackTrace();
consumer = null;
return null;
}
ImageFilter f = (ImageFilter)clone();
consumer = null;
return f;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment