From d3d40e23b32e60afbbdfa3677208c0d9722c1a38 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Wed, 30 Apr 2003 13:22:45 +0000 Subject: 2003-04-30 Michael Koch * java/text/BreakIterator.java (clone): New method. From-SVN: r66289 --- libjava/java/text/BreakIterator.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libjava/java') diff --git a/libjava/java/text/BreakIterator.java b/libjava/java/text/BreakIterator.java index b5321f4..217d2a9 100644 --- a/libjava/java/text/BreakIterator.java +++ b/libjava/java/text/BreakIterator.java @@ -77,6 +77,21 @@ public abstract class BreakIterator implements Cloneable } /** + * 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. -- cgit v1.1