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
Thorough check on nullable/non-nullable arguments #140
Comments
thinking of using FindBugs and JSR 305 annotations, and going through all the input params thoroughly on DeferredManager and callbacks. Should we do this before or after #157? |
I'm a big fan of JSR-305 and I use whenever I can. This being said there are a few problems with it https://blog.codefx.org/java/jsr-305-java-9/ I think it would be better to perform a static analysis of the code without applying annotations to the source. We can do this with Findbugs and IntelliJ (both of them). |
eak :( what should we use? |
The thing is, if we choose existing |
hm, can it be an optional dependency? i.e., in normal cases and be optional during the runtime? |
The annotations from JSR-305 have runtime as retention policy. I'm afraid adding it's not possible to add them as an optional dependency. |
doh! will put that on hold then, and just add null checks |
For example
DeferredRunnable(StartPolicy)
does not check if its argument is null or not, perhaps assign a default value just likeDeferredCallable
does.It might be a good idea to state the
nullability
of arguments and return types. This has been done in part inDeferredManager
on the type safe versions ofwhen
,race
, andsettle
.The text was updated successfully, but these errors were encountered: