summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2016-12-01 19:07:17 +0000
committerTobias Thierer <tobiast@google.com>2016-12-02 15:47:31 +0000
commit92929ee38d838ec47130c8e37c353dc6522b0114 (patch)
tree6f666e87aa33a4d66ab65215a1882122d4b1bc73 /annotations/generate_annotated_java_files.py
parent0e6a2b634841d2bbf56bc5b00762b50f50b83852 (diff)
Drop deprecated libcore.io.Base64 in favor of java.util.Base64
Move the last last remaining user (DropBox) of l.i.Base64.encode() to j.u.Base64.getEncoder().encodeToString() which produces exactly the same result. The decoding behavior of the two implementations differ: - in case of error, l.i.Base64 returns null vs. j.u.Base64 throws - j.u.Base64 is more strict about forbidding extra in-stream or trailing characters - the two implementations differ in how many bytes they decode if the encoded data ends prematurely. To document the behavior change, the old libcore.io.Base64Test was kept with updated expectations and under a new name. Bug: 31292683 Test: libcore.java.util.LibcoreIoDerivedBase64Test Change-Id: I62d4731d38619629d72549430c57e07f8ea4aa1e
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions