summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2016-09-27 13:46:02 +0100
committerTobias Thierer <tobiast@google.com>2016-09-27 18:35:07 +0100
commit744e29af4f98397771d4737121dba11505565e8c (patch)
tree0b1d7d786e99481e5dfee4efcf8d15c959df37ce /annotations/generate_annotated_java_files.py
parent6d48c53a48541c15e00cd9af660d849d55c418cf (diff)
Let Currency.getDisplayName(null) throw NPE.
Previously (at least on Android N), it returned the display name in some locale (probably the default locale but I haven't checked). This was inconsistent with the documentation. This CL changes the behavior to throw NPE instead, which is consistent with the documentation and with the RI. Added test for expectation of NPE when passing null to several Currency methods. Bug: 31765082 Test: Ran both CurrencyTest classes. Change-Id: I4b64358d28e25ff96d666700ae3ffddc0a7f8d6d
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions