-
Notifications
You must be signed in to change notification settings - Fork 95
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
Null check annotations for Semantic Tokens API #1852
base: master
Are you sure you want to change the base?
Null check annotations for Semantic Tokens API #1852
Conversation
d7a1c51
to
6e4d085
Compare
Is it okay to add jdt annotations plugin dependency to JDT UI? (cc: @jukzi @martinlippert) |
@stephan-herrmann As this your area would you please jump in? |
Thanks for the heads-up. Some remarks:
While I'm all for spreading null annotations into our own code, I'm not sure whether this example is the point where jdt.ui should flip the switch. @BoykoAlex as you seem to have experience with this analysis in the downstream plug-in, would you be interested in helping towards a null-checked implementation in jdt.ui, or some area of it? |
@stephan-herrmann I don't think I'd get much time to dedicate to adopting null-check annotations in JDT UI. I looked into it only because LSP4E seems to have null-check analysis setting on and I had issues adopting new API of |
In that case using external annotations in downstream projects looks like the path of least resistance ... |
The downstream plugins using the new
ISemanticTokensProvider
API and having JDTnull
analysis turned on having issues compiling classes deriving from theISemanticTokensProvider
. Whether I add@Nullable
or@NonNull
the class still fails to compile withAdding the
@NonNull
for the return type and the parameter sets the proper API expectations as well as hopefully would help sorting the downstream compiler errors out.