Skip to content

Add @MethodsReturnNonnullByDefault #549

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

Merged
merged 5 commits into from
Sep 1, 2022

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Aug 29, 2022

Closes #548. Similar to #541, this adds an annotation @MethodsReturnNonnullByDefault to all packages.

Effectively making @Nonnull completely obsolete in our code base - hence also removing it everywhere.

The annotation is self-written (idea snacked from Minecraft who has this annotation as well - credits go to Quinteger for raising awareness).

The PR will of course generate a lot of (simple) merge conflicts - again. But I think people will like it 👍


Everyone say goodbye to @Nonnull 👋 goodbye

@Zabuzard Zabuzard added enhancement New feature or request priority: normal labels Aug 29, 2022
@Zabuzard Zabuzard self-assigned this Aug 29, 2022
@Zabuzard Zabuzard requested review from a team as code owners August 29, 2022 12:51
@Quinteger
Copy link
Contributor

"database" subproject also has those annotations. Maybe create a separate subproject that will hold that annotation? This way "application" and "database" won't have to depend on each other.

@Zabuzard
Copy link
Member Author

Zabuzard commented Sep 1, 2022

auto merging this on the weekend if no approves come in sooner 👍

@Zabuzard Zabuzard force-pushed the feature/methods_return_non_null_by_default branch from 17e0c73 to 5c7367e Compare September 1, 2022 17:57
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard Zabuzard merged commit 2fa1b8f into develop Sep 1, 2022
@Zabuzard Zabuzard deleted the feature/methods_return_non_null_by_default branch September 1, 2022 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add @MethodsReturnNonnullByDefault
2 participants