Skip to content

Commit 2c3a2be

Browse files
committed
8211449: Correction to the spec of implicit negative subpattern in DecimalFormat
Reviewed-by: bpb
1 parent 11bfdc5 commit 2c3a2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/text/DecimalFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
* subpattern, for example, {@code "#,##0.00;(#,##0.00)"}. Each
128128
* subpattern has a prefix, numeric part, and suffix. The negative subpattern
129129
* is optional; if absent, then the positive subpattern prefixed with the
130-
* localized minus sign ({@code '-'} in most locales) is used as the
130+
* minus sign ({@code '-' U+002D HYPHEN-MINUS}) is used as the
131131
* negative subpattern. That is, {@code "0.00"} alone is equivalent to
132132
* {@code "0.00;-0.00"}. If there is an explicit negative subpattern, it
133133
* serves only to specify the negative prefix and suffix; the number of digits,

0 commit comments

Comments
 (0)