Skip to content

Conversation

@ngocnhan-tran1996
Copy link
Contributor

This PR includes:

  • Polish diamond operator
  • Use pattern matching
  • Improve #isEmpty condition

- diamond operator
- isEmpty condition
this.removed = true;
if (this.theConnection instanceof TcpConnectionInterceptorSupport && !this.theConnection.equals(this)) {
((TcpConnectionInterceptorSupport) this.theConnection).removeDeadConnection(this);
if (this.theConnection instanceof TcpConnectionInterceptorSupport tcpConnectionInterceptorSupport && !this.theConnection.equals(this)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably will accept this PR as is.
Due to its size and simplicity, but for the future contributions, please, consider to make code lines not more than 120 symbols.

@artembilan artembilan added this to the 6.4.0-RC1 milestone Sep 23, 2024
@artembilan artembilan merged commit fc37712 into spring-projects:main Sep 23, 2024
3 checks passed
@artembilan
Copy link
Member

@ngocnhan-tran1996 ,

Thank you for very much for the contribution; looking forward for more!

Please, consider these rules for commit messages in the future: https://cbea.ms/git-commit/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants