summaryrefslogtreecommitdiff
path: root/tools/docs/crypto/crypto_docs.py
diff options
context:
space:
mode:
authorJoachim Sauer <jsauer@google.com>2017-03-24 15:48:14 +0000
committerJoachim Sauer <jsauer@google.com>2017-04-12 14:45:45 +0100
commite496eead292b126c60f886ca881025b096afadf5 (patch)
treeaa3c7b54d02fe678bee8743e8e877dcfb32cda41 /tools/docs/crypto/crypto_docs.py
parent25bafbf1f9c4eb37b50fcfbba776c74e5707a3d7 (diff)
Generating GMT offset Strings in TimeZoneNames
The only remaining user of TimeZoneNames (DateFormatSymbols) always generates GMT offset Strings (GMT+XX:XX) for all null values by calling TimeZone.getDisplayName(). This is now rather inefficient, as it will try to load the name via ICU4J and only once that fails will it generate the string. Instead, make sure that TimeZoneNames always returns an array where all values are populated. Also remove unnecessary synchronized keyword from TimeZoneNames.internStrings(). It was left over from an earlier version that used a shared intern table. Mark Android-specific changes in DateFormatSymbols with the appropriate comments. Bug: 33259649 Test: run cts -m CtsLibcoreTestCases Change-Id: I1d84af6361d8e02bb9111efb72008b54c2f8fd24
Diffstat (limited to 'tools/docs/crypto/crypto_docs.py')
0 files changed, 0 insertions, 0 deletions