ColorModel.java: Re-merged with Classpath.

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

From-SVN: r63024
This commit is contained in:
Tom Tromey 2003-02-18 00:57:26 +00:00 committed by Tom Tromey
parent 5b0512df31
commit 59ac5a1725
3 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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 ();

View File

@ -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;
}
/**