Skip to content

Add @MethodsReturnNonnullByDefault - #549

Merged
Zabuzard merged 5 commits into
developfrom
feature/methods_return_non_null_by_default
Sep 1, 2022
Merged

Zabuzard merged 5 commits into
developfrom
feature/methods_return_non_null_by_default

Conversation

@Zabuzard

@Zabuzard Zabuzard commented Aug 29, 2022 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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

Zabuzard commented Sep 1, 2022

Copy link
Copy Markdown
Member Author

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

sonarqubecloud Bot commented Sep 1, 2022

Copy link
Copy Markdown

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