Skip to content
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

style: fix Bad Smells in biz.princeps.lib.command.SubCommand #132

Conversation

MartinWitt
Copy link
Contributor

Repairing Code Style Issues

SizeReplaceableByIsEmpty

Checking if a something is empty should be done by Object#isEmpty instead of Object.size==0

Non-Protected-Constructor-in-Abstract-Class

A non-protected constructor in an abstract class is not needed because only subclasses can be instantiated

Changes:

  • Replaced collection.size empty check with collection.isEmpty
  • Constructor biz.princeps.lib.command.SubCommand(java.lang.String,java.lang.String,java.util.Set,java.util.Set) is now protected instead of public

@Aurelien30000
Copy link
Member

Hey,

Thanks for your first contribution.

Our team will review this as soon as possible.

@SirYwell SirYwell merged commit 3af5985 into LandlordPlugin:development Sep 9, 2022
@SirYwell
Copy link
Member

SirYwell commented Sep 9, 2022

Thank you @MartinWitt

@MartinWitt MartinWitt deleted the laughing-train/Qodana/-1519445419 branch September 11, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size: small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants