Skip to content

RATIS-2469. Remove Command#close()#1404

Merged
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:RATIS-2469
Mar 29, 2026
Merged

RATIS-2469. Remove Command#close()#1404
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:RATIS-2469

Conversation

@adoroszlai
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

  • AbstractShell#close() is never called, thus neither is Command#close()
  • No commands override the default no-op implementation of Command#close().
  • Context#close() is only used to close PrintStream, which should be the responsibility of the creator of Context. System.out does not need to be closed.

Let's remove these unused and useless close() methods.

https://issues.apache.org/jira/browse/RATIS-2469

How was this patch tested?

https://github.com/adoroszlai/ratis/actions/runs/23693045561

@adoroszlai adoroszlai self-assigned this Mar 28, 2026
Copy link
Copy Markdown
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@adoroszlai adoroszlai merged commit 0d3512a into apache:master Mar 29, 2026
16 checks passed
@adoroszlai adoroszlai deleted the RATIS-2469 branch March 29, 2026 06:41
@adoroszlai
Copy link
Copy Markdown
Contributor Author

Thanks @szetszwo for the review.

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