aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/GridBagConstraints.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-01-24 01:05:12 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-01-24 01:05:12 +0000
commit152d4916efac917dd1fc64cc4950e299b54476f0 (patch)
tree3d14cc496cb398dbff3f84504e63b43a6671202f /libjava/java/awt/GridBagConstraints.java
parentaac0eb5d465103f10c0bc8baaafc9ea4d06a9007 (diff)
downloadgcc-152d4916efac917dd1fc64cc4950e299b54476f0.zip
gcc-152d4916efac917dd1fc64cc4950e299b54476f0.tar.gz
gcc-152d4916efac917dd1fc64cc4950e299b54476f0.tar.bz2
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new files. * java/awt/image/AreaAveragingScaleFilter.java: New file from Classpath. * java/awt/image/CropImageFilter.java: New file from Classpath. * java/awt/image/FilteredImageSource.java: New file from Classpath. * java/awt/image/ImageFilter.java: New file from Classpath. * java/awt/image/MemoryImageSource.java: New file from Classpath. * java/awt/image/PixelGrabber.java: New file from Classpath. * java/awt/image/RGBImageFilter.java: New file from Classpath. * java/awt/image/ReplicateScaleFilter.java: New file from Classpath. * java/awt/image/ImageProducer.java: Replaced with Classpath version. * java/awt/image/ImageObserver.java: Replaced with Classpath version. * java/awt/image/ImageConsumer.java: Replaced with Classpath version. * java/awt/GridBagConstraints.java (clone): Catch CloneNotSupportedException. From-SVN: r49157
Diffstat (limited to 'libjava/java/awt/GridBagConstraints.java')
-rw-r--r--libjava/java/awt/GridBagConstraints.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/libjava/java/awt/GridBagConstraints.java b/libjava/java/awt/GridBagConstraints.java
index c91ed09..dd72a51 100644
--- a/libjava/java/awt/GridBagConstraints.java
+++ b/libjava/java/awt/GridBagConstraints.java
@@ -1,6 +1,6 @@
// GridBagConstraints.java - Constraints for GridBag layout manager
-/* Copyright (C) 2000, 2001 Free Software Foundation
+/* Copyright (C) 2000, 2001, 2002 Free Software Foundation
This file is part of GNU Classpath.
@@ -93,9 +93,17 @@ public class GridBagConstraints implements Cloneable, Serializable
/** Create a copy of this object. */
public Object clone ()
{
- GridBagConstraints g = (GridBagConstraints) super.clone ();
- g.insets = (Insets) insets.clone ();
- return g;
+ try
+ {
+ GridBagConstraints g = (GridBagConstraints) super.clone ();
+ g.insets = (Insets) insets.clone ();
+ return g;
+ }
+ catch (CloneNotSupportedException _)
+ {
+ // Can't happen.
+ return null;
+ }
}
/** Create a new GridBagConstraints object with the default