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
3 changed files with 9 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue