From ff695e917a2f880d272e16c2d84e005515bf4451 Mon Sep 17 00:00:00 2001 From: tromey Date: Fri, 7 Sep 2001 00:15:47 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45458 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.1