-
Notifications
You must be signed in to change notification settings - Fork 361
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
JSR-305 custom nullability qualifiers #79
Comments
See my questions and remarks about |
After a lot of work on Reactor side, various discussion with @dzharkov, and considering the impact of doing the same work on a project as big as Spring Framework, I think what is supported currently is not mature enough so while this is a difficult decision to make I think we are going to postpone generic type argument nullability until things are fully finished on Kotlin and IDEA sides. That's a key feature for us but it is too early, we can't go GA with current support. Based on Reactor experience and considering Spring Framework codebase as well, please find bellow our point of view about the missing pieces and open questions.
We would like to discuss these 5 points that are currently the missing pieces for us to be able to complete this very important null-safety topic. We may introduce that in Reactor 3.1.x / Spring 5.0.x release when available in Kotlin and IDEA. |
@sdeleuze Thank you a lot for your feedback! |
I have updated point 4 mentioning JSR 305 default nullability qualifiers applied to |
@sdeleuze We're going to update the proposal to fix issues you found
|
@dzharkov Nice, sounds like a plan! One point I would like to clarify with you is where Spring Framework currently only depends on Another important aspect is that null-safety annotations are not Kotlin specific but also apply to Java developers via tooling like IDEA. I do think this is important to continue following this strategy for consistency especially for frameworks targeting Java + Kotlin like Spring Having this 2 points in mind, and given the fact that FindBugs is not active anymore, could Jetbrains provide a JSR 305 GitHub repository and JAR containing the same annotations than FindBugs one + |
@sdeleuze Currently, It's all complicated with FindBugs modification/redistributing because it has unknown licence status |
@dzharkov I understand BSD versus Apache 2 + When you create the repo and the artifact for this annotation, could you please let the door open (with a general enough name and a package not directly to kotlin for example) to later allow adding more annotations that could be used as an alternative to JSR 305 |
Another example why adding jsr 305 alternative annotations in this new JetBrain owned library would be welcome by the community : openzipkin/zipkin@eeeeb3c |
More details about the Java 9 related issues a JetBrain JSR 305 alternative would solve: https://blog.codefx.org/java/jsr-305-java-9/ |
The feature has been released in Kotlin 1.2, thus I'm closing the KEEP. Do not hesitate to open a YouTrack issue for any additional suggestions. |
@dzharkov Should I create an issue to track the release of the null-safety annotation library we discussed (with |
@sdeleuze No, I will create a separate issue right here |
Another discussion belongs to KT-30789 |
Discussion for the proposal
The text was updated successfully, but these errors were encountered: