diff options
| author | Tom Tromey <tromey@redhat.com> | 2001-09-07 00:15:47 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-09-07 00:15:47 +0000 |
| commit | 89066f10f5dbb9e6192cd2ae29ec0f6815ce1d60 (patch) | |
| tree | 3b0e9627227e608f5c734780cbf7d70418dd82bb /libjava/java/text/DecimalFormat.java | |
| parent | cffb260138eff6ba20037f3017b24cbe4b0fae03 (diff) | |
RuleBasedCollator.java (clone): Rewrote.
* java/text/RuleBasedCollator.java (clone): Rewrote.
(RuleBasedCollator(RuleBasedCollator)): Removed.
* java/text/MessageFormat.java: Re-merged from Classpath.
* java/text/DecimalFormat.java: Re-merged from Classpath.
From-SVN: r45458
Diffstat (limited to 'libjava/java/text/DecimalFormat.java')
| -rw-r--r-- | libjava/java/text/DecimalFormat.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/libjava/java/text/DecimalFormat.java b/libjava/java/text/DecimalFormat.java index f6b7223ed04..edf340027ed 100644 --- a/libjava/java/text/DecimalFormat.java +++ b/libjava/java/text/DecimalFormat.java @@ -350,21 +350,9 @@ public class DecimalFormat extends NumberFormat public Object clone () { - return new DecimalFormat (this); - } - - private DecimalFormat (DecimalFormat dup) - { - decimalSeparatorAlwaysShown = dup.decimalSeparatorAlwaysShown; - groupingSize = dup.groupingSize; - minExponentDigits = dup.minExponentDigits; - multiplier = dup.multiplier; - negativePrefix = dup.negativePrefix; - negativeSuffix = dup.negativeSuffix; - positivePrefix = dup.positivePrefix; - positiveSuffix = dup.positiveSuffix; - symbols = (DecimalFormatSymbols) dup.symbols.clone(); - useExponentialNotation = dup.useExponentialNotation; + DecimalFormat c = (DecimalFormat) super.clone (); + c.symbols = (DecimalFormatSymbols) symbols.clone (); + return c; } public DecimalFormat () |
