Skip to content

Commit 0a03fc8

Browse files
committed
8255674: SSLEngine class description is missing "case" in switch statement
Reviewed-by: xuelei
1 parent d86f916 commit 0a03fc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/javax/net/ssl/SSLEngine.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -224,7 +224,7 @@
224224
* <pre>{@code
225225
* SSLEngineResult r = engine.unwrap(src, dst);
226226
* switch (r.getStatus()) {
227-
* BUFFER_OVERFLOW:
227+
* case BUFFER_OVERFLOW:
228228
* // Could attempt to drain the dst buffer of any already obtained
229229
* // data, but we'll just increase it to the size needed.
230230
* int appSize = engine.getSession().getApplicationBufferSize();
@@ -234,7 +234,7 @@
234234
* dst = b;
235235
* // retry the operation.
236236
* break;
237-
* BUFFER_UNDERFLOW:
237+
* case BUFFER_UNDERFLOW:
238238
* int netSize = engine.getSession().getPacketBufferSize();
239239
* // Resize buffer if needed.
240240
* if (netSize > src.capacity()) {

0 commit comments

Comments
 (0)