> Please review this PR which improves the safety of equality checking for 
> DecimalFormatSymbols. As certain setters did not throw NPE, this allowed for 
> NPE in the equality method. This PR now updates the setters to throw NPE.
> 
> In addition to the NPEs, there is also a behavioral change that 
> `setInternationalCurrencySymbol` no longer sets currency to null if the 
> `currencyCode` is invalid. Instead, it simply does not update `currency`. 
> This must be done, because we do not want to allow nullable instance 
> variables post `initalizeCurrency`.

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

  reflect review - setters throw NPE

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21315/files
  - new: https://git.openjdk.org/jdk/pull/21315/files/bd6b021c..91b1c78f

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

  Stats: 263 lines in 3 files changed: 100 ins; 148 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/21315.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21315/head:pull/21315

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

Reply via email to