mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 14:39:42 +08:00
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:
parent
5b0512df31
commit
59ac5a1725
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user