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

fix: inverted isEmpty method on ComponentStyle #3611

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

diogotcorreia
Copy link
Contributor

Fixes #3610
Relates to #3569 and 737d545

cc @2008Choco

@Janmm14
Copy link
Contributor

Janmm14 commented Feb 1, 2024

The code now fits to the method description, however the javadoc fitted to the previous implementation and needs to be updated as well.

@diogotcorreia diogotcorreia force-pushed the componentstyle-isempty branch from b0ffee7 to e00bf45 Compare February 1, 2024 10:42
@diogotcorreia
Copy link
Contributor Author

Thanks, missed that 😅
Fixed and force pushed

@diogotcorreia
Copy link
Contributor Author

Should I add some tests as well?
I can do that a few hours from now.

@md-5
Copy link
Member

md-5 commented Feb 1, 2024

Yes a test would be great thanks

@md-5 md-5 self-assigned this Feb 1, 2024
@diogotcorreia diogotcorreia force-pushed the componentstyle-isempty branch from e00bf45 to 1095ff6 Compare February 1, 2024 13:50
@diogotcorreia
Copy link
Contributor Author

I've added two tests, let me know if you want more.
Ready to merge 🎉

@2008Choco
Copy link
Contributor

Thank you! I should have made a unit test for this method :)

@md-5 md-5 merged commit c3f228f into SpigotMC:master Feb 2, 2024
4 checks passed
@diogotcorreia diogotcorreia deleted the componentstyle-isempty branch February 2, 2024 06:03
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.

ComponentStyle#isEmpty is inverted
4 participants