You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we support @nonnull and @nullable annotations in public method return values and parameters?
Adding these can help parseq users write accurate Parseq code more easily by getting help from IDE in null detection wherever applicable.
If agreed, I can take this task and submit a review.
The text was updated successfully, but these errors were encountered:
This is a question raised before. The problem is that there are multiple versions of @nonull and @nullable annotations, as well as several static analysis tools to handle these annotations like findBugs, Android IDE, etc. When you mention IDE here, do you mean Android developer IDE? Typical IntelliJ IDE will not do null detection for you until you hook up with some static analysis checker tool.
Yeah I agree there are multiple versions. We should stick to Java versions (javax.annotation.Nonnull and Nullable). Both IntelliJ and Eclipse have built-in support for null detection using these annotations. No plugin or stylecheck addition required.
These annotations are useful even for developers without IDE as they serve as a good documentation and set right expectations for the API.
Can we support @nonnull and @nullable annotations in public method return values and parameters?
Adding these can help parseq users write accurate Parseq code more easily by getting help from IDE in null detection wherever applicable.
If agreed, I can take this task and submit a review.
The text was updated successfully, but these errors were encountered: