mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8203614: Java API SSLEngine example code needs correction
Reviewed-by: wetmore, ascarpino
This commit is contained in:
parent
660c7e50f7
commit
d9456186e8
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ import java.util.function.BiFunction;
|
||||||
* BUFFER_UNDERFLOW:
|
* BUFFER_UNDERFLOW:
|
||||||
* int netSize = engine.getSession().getPacketBufferSize();
|
* int netSize = engine.getSession().getPacketBufferSize();
|
||||||
* // Resize buffer if needed.
|
* // Resize buffer if needed.
|
||||||
* if (netSize > dst.capacity()) {
|
* if (netSize > src.capacity()) {
|
||||||
* ByteBuffer b = ByteBuffer.allocate(netSize);
|
* ByteBuffer b = ByteBuffer.allocate(netSize);
|
||||||
* src.flip();
|
* src.flip();
|
||||||
* b.put(src);
|
* b.put(src);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue