Introduce @Nullable @Notnull annotations. #18028
mattisonchao
started this conversation in
Ideas
Replies: 3 comments
-
Cannot agree more. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm in favour of greater clarity but why create new annotations and not just use the javax or jetbrains equivalents directly? Or indeed the lombok equivalents. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Seems we are combining "@javax.annotation.x" and "@org.jetbrains.annotations.x"? Can you bring more context on these two? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we have many util methods and public methods.
For project quality, I would like to introduce
@Notnull
and@Nullable
annotations to help contributors easily understand methods and avoid NPE.I expect we introduce two annotations for Pulsar.
NPE problems: https://github.com/apache/pulsar/pulls?q=+NPE+
Beta Was this translation helpful? Give feedback.
All reactions