Skip to content

Fix IDE warnings in SslHandler (#16237)#16299

Merged
chrisvest merged 1 commit intonetty:5.0from
chrisvest:5.0-sslhandler_cleanup
Feb 18, 2026
Merged

Fix IDE warnings in SslHandler (#16237)#16299
chrisvest merged 1 commit intonetty:5.0from
chrisvest:5.0-sslhandler_cleanup

Conversation

@chrisvest
Copy link
Copy Markdown
Member

Motivation:

Make code cleaner and easier to read.

Modification:

  • Use lambdas/method references when possible
  • Removed unreachable condition result.bytesConsumed() == 0 && result.getHandshakeStatus() == HandshakeStatus.NOT_HANDSHAKING as previously in the code there is a switch that returns true for NOT_HANDSHAKING status
  • Remove unnecessary result.bytesConsumed() call

Result:

Less IDE warnings, easier to read code


Co-authored-by: Chris Vest christianvest_hansen@apple.com

(cherry picked from commit 5ed3065)

Motivation:

Make code cleaner and easier to read.

Modification:

- Use lambdas/method references when possible
- Removed unreachable condition `result.bytesConsumed() == 0 &&
result.getHandshakeStatus() == HandshakeStatus.NOT_HANDSHAKING` as
previously in the code there is a switch that returns true for
`NOT_HANDSHAKING` status
- Remove unnecessary `result.bytesConsumed()` call

Result:

Less IDE warnings, easier to read code

---------

Co-authored-by: Chris Vest <christianvest_hansen@apple.com>

(cherry picked from commit 5ed3065)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Feb 18, 2026
@chrisvest chrisvest enabled auto-merge (squash) February 18, 2026 17:56
@chrisvest chrisvest disabled auto-merge February 18, 2026 23:02
@chrisvest chrisvest merged commit dffffe2 into netty:5.0 Feb 18, 2026
12 of 13 checks passed
@chrisvest chrisvest deleted the 5.0-sslhandler_cleanup branch February 18, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants