Skip to content

Conversation

@yusshu
Copy link
Contributor

@yusshu yusshu commented Oct 20, 2023

  • Make NamespaceImpl final and package-private
  • Make AnnotatedCommandTreeBuilderImpl final and package-private
  • Make SimplePartInjector final and package-private
  • Make AnotatedCommandBuilderImpl final and package-private
  • Make CommandBuilderNodesImpl final and package-private

I'm pretty sure NamespaceImpl should be final and package-private, not sure about the others, but I can't see any usage for extending any of those classes, since none of them has any public method different from their implementing interface... well, maybe some class that changes the behavior of a single method? Even in that case, I think it should just use composition over inheritance.

@yusshu yusshu requested a review from FixedDev October 20, 2023 08:39
@FixedDev FixedDev merged commit f372363 into FixedDev:master Oct 20, 2023
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