Null check annotations for Semantic Tokens API#1852
Null check annotations for Semantic Tokens API#1852BoykoAlex wants to merge 1 commit intoeclipse-jdt:masterfrom
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
ISemanticTokensProviderAPI and having JDTnullanalysis turned on having issues compiling classes deriving from theISemanticTokensProvider. Whether I add@Nullableor@NonNullthe class still fails to compile withAdding the
@NonNullfor the return type and the parameter sets the proper API expectations as well as hopefully would help sorting the downstream compiler errors out.