hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
281 stars 125 forks source link

Cleanup remaining usage of NonNull and Nullable #15375

Open netopyr opened 1 week ago

netopyr commented 1 week ago

🆕🐥 First Timers Only

This issue is reserved for people who have never contributed to Hedera or any open source project in general. We know that creating a pull request (PR) is a major barrier for new contributors. The goal of this issue and all other issues labeled by 'Good First Issue' is to help you make your first contribution to Hedera.

👾 Description of the issue

There are various libraries that offer @NonNull and @Nullable annotations. In the past, different teams used different libraries, which led to confusion. Meanwhile, we have standardized the usage and only use the annotations from the package edu.umd.cs.findbugs.annotations. However, there are still a few classes in which other annotations are used.

At least these two classes still use the wrong annotation:

Steps to reproduce

See in the import. All @NonNull and @Nullable imports should use the package edu.umd.cs.findbugs.annotations. The @NotNull annotation should not be used anymore.

Proposed Solution:

Search for all places where the wrong annotation is used and replace it with the correct one from edu.umd.cs.findbugs.annotations.

📋 Step by step guide to do a contribution

If you have never contributed to an open source project at GitHub, the following step-by-step guide will introduce you to the workflow. More information and concrete samples for shell commands for each step can be found in our CONTRIBUTING.md file. A more detailed general documentation of the GitHub PR workflow can be found here.

🎉 Contribute to Hacktoberfest

Solve this issue as part of the Hacktoberfest event and get a chance to receive cool goodies like a T-Shirt. 🎽

🤔 Additional Information

If you have any questions, just ask us directly in this issue by adding a comment. You can join our community chat at Discord. A general manual about open-source contributions can be found here.

Ayush-Baranwal commented 1 week ago

hi @netopyr I would like to contribute to this issue.

netopyr commented 1 week ago

Hi @Ayush-Baranwal! Welcome, and please go ahead! If you have any questions, do not hesitate to ask.