summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2009-11-17 16:42:52 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-11-17 16:42:52 -0800
commit9c4f6dc41474742e0331292281815d2c3fbaa78b (patch)
treeabe43ddd79796098eebebaf5938bcc5abade001d
parentc53fc8aa0cae268ac4e9fbbdf66e2a3002d7760b (diff)
parent30ac2225b7ac7a5f166f044a27f47bc2cd9815ae (diff)
downloadlibcore-9c4f6dc41474742e0331292281815d2c3fbaa78b.zip
libcore-9c4f6dc41474742e0331292281815d2c3fbaa78b.tar.gz
libcore-9c4f6dc41474742e0331292281815d2c3fbaa78b.tar.bz2
am 08c24984: Merge change I0ee370b9 into eclair-mr2
Merge commit '08c24984fd3cb3e927c9a97b8413843b4b215dc5' into eclair-mr2-plus-aosp * commit '08c24984fd3cb3e927c9a97b8413843b4b215dc5': Consistently use Formatter's cached NumberFormat.
-rw-r--r--luni/src/main/java/java/util/Formatter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/java/java/util/Formatter.java b/luni/src/main/java/java/util/Formatter.java
index d1dd417..3196f0e 100644
--- a/luni/src/main/java/java/util/Formatter.java
+++ b/luni/src/main/java/java/util/Formatter.java
@@ -1896,7 +1896,7 @@ public final class Formatter implements Closeable, Flushable {
}
// output result
FloatUtil floatUtil = new FloatUtil(result, formatToken,
- (DecimalFormat) NumberFormat.getInstance(locale), arg);
+ (DecimalFormat) getNumberFormat(), arg);
floatUtil.transform(formatToken, result);
formatToken.setPrecision(FormatToken.UNSET);