aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-02-18 00:57:26 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-02-18 00:57:26 +0000
commit59ac5a1725b2e1184c83ac7dcd755fd33d06f696 (patch)
tree9e56be145d5221c191759eacd76202a033b4f0aa /libjava/java
parent5b0512df3184585a9b6f2061439cae2040120ddb (diff)
downloadgcc-59ac5a1725b2e1184c83ac7dcd755fd33d06f696.zip
gcc-59ac5a1725b2e1184c83ac7dcd755fd33d06f696.tar.gz
gcc-59ac5a1725b2e1184c83ac7dcd755fd33d06f696.tar.bz2
ColorModel.java: Re-merged with Classpath.
* java/awt/image/ColorModel.java: Re-merged with Classpath. * java/awt/image/ImageFilter.java: Likewise. From-SVN: r63024
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/image/ColorModel.java2
-rw-r--r--libjava/java/awt/image/ImageFilter.java12
2 files changed, 4 insertions, 10 deletions
diff --git a/libjava/java/awt/image/ColorModel.java b/libjava/java/awt/image/ColorModel.java
index fab5166..f798ee2 100644
--- a/libjava/java/awt/image/ColorModel.java
+++ b/libjava/java/awt/image/ColorModel.java
@@ -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 ();
diff --git a/libjava/java/awt/image/ImageFilter.java b/libjava/java/awt/image/ImageFilter.java
index 86bc021..f58e538 100644
--- a/libjava/java/awt/image/ImageFilter.java
+++ b/libjava/java/awt/image/ImageFilter.java
@@ -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;
}
/**