This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.text.BreakIterator
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 30 Apr 2003 15:24:08 +0200
- Subject: FYI: Patch: java.text.BreakIterator
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached patch to add the missing clone() method to
java.text.BreakIterator.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+r854WSOgCCdjSDsRAm1BAJ9bL2q+r3Tf3qDsaZ0fDBiU4YiozwCdE27p
IIU3pE1SkY8fNI0IOgKVyao=
=Uxc9
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1865
diff -u -r1.1865 ChangeLog
--- ChangeLog 30 Apr 2003 13:09:39 -0000 1.1865
+++ ChangeLog 30 Apr 2003 13:20:48 -0000
@@ -1,5 +1,10 @@
2003-04-30 Michael Koch <konqueror@gmx.de>
+ * java/text/BreakIterator.java
+ (clone): New method.
+
+2003-04-30 Michael Koch <konqueror@gmx.de>
+
* java/text/CollationElementIterator.java,
java/text/CollationKey.java,
java/text/RuleBasedCollator.java:
Index: java/text/BreakIterator.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/BreakIterator.java,v
retrieving revision 1.6
diff -u -r1.6 BreakIterator.java
--- java/text/BreakIterator.java 22 Jan 2002 22:40:37 -0000 1.6
+++ java/text/BreakIterator.java 30 Apr 2003 13:20:48 -0000
@@ -77,6 +77,21 @@
}
/**
+ * Create a clone of this object.
+ */
+ public Object clone ()
+ {
+ try
+ {
+ return super.clone();
+ }
+ catch (CloneNotSupportedException e)
+ {
+ return null;
+ }
+ }
+
+ /**
* This method returns the index of the current text element boundary.
*
* @return The current text boundary.