summaryrefslogtreecommitdiffstats
path: root/libjava/java/awt/GridBagConstraints.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-24 01:05:12 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-24 01:05:12 +0000
commitf4f1a959eab98ba526a7eb5b1222e76f9529e81d (patch)
tree3d14cc496cb398dbff3f84504e63b43a6671202f /libjava/java/awt/GridBagConstraints.java
parentcfbeb4aa619f770752817037daf35a27c4fff3ef (diff)
downloadppe42-gcc-f4f1a959eab98ba526a7eb5b1222e76f9529e81d.tar.gz
ppe42-gcc-f4f1a959eab98ba526a7eb5b1222e76f9529e81d.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49157 138bc75d-0d04-0410-961f-82ee72b054a4
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 c91ed0969dd..dd72a519a8d 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
OpenPOWER on IntegriCloud