From 89066f10f5dbb9e6192cd2ae29ec0f6815ce1d60 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 7 Sep 2001 00:15:47 +0000 Subject: 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 --- libjava/java/text/DecimalFormat.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'libjava/java/text/DecimalFormat.java') 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 () -- cgit v1.2.3