mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8255674: SSLEngine class description is missing "case" in switch statement
Reviewed-by: xuelei
This commit is contained in:
parent
d86f91642d
commit
0a03fc84b3
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -224,7 +224,7 @@ import java.util.function.BiFunction;
|
|||
* <pre>{@code
|
||||
* SSLEngineResult r = engine.unwrap(src, dst);
|
||||
* switch (r.getStatus()) {
|
||||
* BUFFER_OVERFLOW:
|
||||
* case BUFFER_OVERFLOW:
|
||||
* // Could attempt to drain the dst buffer of any already obtained
|
||||
* // data, but we'll just increase it to the size needed.
|
||||
* int appSize = engine.getSession().getApplicationBufferSize();
|
||||
|
@ -234,7 +234,7 @@ import java.util.function.BiFunction;
|
|||
* dst = b;
|
||||
* // retry the operation.
|
||||
* break;
|
||||
* BUFFER_UNDERFLOW:
|
||||
* case BUFFER_UNDERFLOW:
|
||||
* int netSize = engine.getSession().getPacketBufferSize();
|
||||
* // Resize buffer if needed.
|
||||
* if (netSize > src.capacity()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue