Skip to content

Commit

Permalink
Replace NumberParser use of Locale.ENGLISH with Locale.ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 2, 2024
1 parent 40d76ec commit 7d49a64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<body>
<release version="3.4.1" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
<!-- FIX -->
<action type="fix" dev="ggregory" due-to="Gary Gregory">Replace NumberParser use of Locale.ENGLISH with Locale.ROOT.</action>
<!-- ADD -->
<!-- UPDATE -->
<action type="update" dev="ggregory">Bump commons-logging:commons-logging from 1.3.2 to 1.3.3 #267.</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class NumberParser implements Serializable {
*/
private static final long serialVersionUID = 1L;
/** JEXL locale-neutral big decimal format. */
static final DecimalFormat BIGDF = new DecimalFormat("0.0b", new DecimalFormatSymbols(Locale.ENGLISH));
static final DecimalFormat BIGDF = new DecimalFormat("0.0b", new DecimalFormatSymbols(Locale.ROOT));
private static boolean isNegative(final Token token) {
return token != null && "-".equals(token.image);
}
Expand Down

0 comments on commit 7d49a64

Please sign in to comment.