You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2026/03/28 19:51:00 UTC
[jira] [Created] (RATIS-2469) Remove Command#close()
Attila Doroszlai created RATIS-2469:
---------------------------------------
Summary: Remove Command#close()
Key: RATIS-2469
URL: https://issues.apache.org/jira/browse/RATIS-2469
Project: Ratis
Issue Type: Improvement
Components: shell
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
- {{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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)