Skip to content

Polish #9505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Polish #9505

merged 2 commits into from
Sep 23, 2024

Conversation

ngocnhan-tran1996
Copy link
Contributor

This PR includes:

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

- diamond operator
- isEmpty condition
@@ -249,8 +250,8 @@ public void removeDeadConnection(TcpConnection connection) {
return;
}
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