diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-07 00:15:47 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-07 00:15:47 +0000 |
| commit | ff695e917a2f880d272e16c2d84e005515bf4451 (patch) | |
| tree | 3b0e9627227e608f5c734780cbf7d70418dd82bb /libjava/java/text/DecimalFormat.java | |
| parent | b6cba6cfcbec4d36f823fc1a15d7e1d6fc2a26fd (diff) | |
| download | gcc-ff695e917a2f880d272e16c2d84e005515bf4451.tar.gz | |
* 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
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 () |
