summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2016-09-14 18:57:26 +0100
committerSergio Giro <sgiro@google.com>2016-09-26 20:11:20 +0000
commit5e0de5adc153f16923008af80ae88578c4801235 (patch)
treece4954177eaa09db9e396b945e98fde615c5035f /annotations/generate_annotated_java_files.py
parent772b2b85f51e424ccf62178e41303e21747663d6 (diff)
javax.crypto.CipherSpi: port this class from jdk8u60
Changes made upstream in CipherSpi#bufferCrypt(ByteBuffer input, ByteBuffer output) - when the input is not backed by an array, do not call get() for a chunk of size 0. This doesn't change behaviour, as for the size of the chunk to be 0, the size of the input must be 0, and this is checked earlier in the method (it returns early in that case). - do not call the "position" method when finishing reading from a buffer not backed by an array. - do not call put() when writing an output of size 0 to a buffer not backed by an array. Bug: 29631070 Test: vogar CipherSpiTest Change-Id: Id803bc6d9df0c1711f3cf7e5d49751bccd0e91b3
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions