<i18n dev> RFR: 8351074: Disallow null prefix and suffix in DecimalFormat [v3]

Justin Lu jlu at openjdk.org
Tue Mar 4 18:12:48 UTC 2025


> Please review this PR and associated CSR which disallows passing null to 4 `DecimalFormat` prefix/suffix setter methods.
> 
> Currently these setters do not check the input String for null. When the prefix/suffix is null, any such DecimalFormat instances are effectively non-functional as it will throw NPE for most operations.

Justin Lu has updated the pull request incrementally with one additional commit since the last revision:

  Make non-null apparent in param tag as well

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/23880/files
  - new: https://git.openjdk.org/jdk/pull/23880/files/e13ac0d0..623bfdac

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23880&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23880&range=01-02

  Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/23880.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23880/head:pull/23880

PR: https://git.openjdk.org/jdk/pull/23880


More information about the i18n-dev mailing list