-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add an option to enable/disable null analysis #2747
Conversation
7b6f271
to
0482f4d
Compare
Since switching between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of the change looks pretty good. Just some minor things to address.
package.json
Outdated
"automatic" | ||
], | ||
"default": "disabled", | ||
"markdownDescription": "Specify how to enable the annotation-based null analysis. When set to `interactive`, you will have a chance to turn on the null analysis when the null annotations are detected in your project dependencies.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we need to explain what happens when interactive
is set. If you look at other options we have (eg. java.configuration.updateBuildConfiguration
, java.project.importOnFirstTimeStartup
) that use interactive
, we never go into details. Maybe it's understood that the setting implies some kind of UI prompt when the capability is about to change/enable.
Also, there's 3 other places in previous changes where we use ".. if it exists in your project dependencies". I would avoid this in favour of just ".. if it exists in project dependencies"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let me remove the detail description of interactive
and make the phase more readable.
Signed-off-by: Shi Chen <[email protected]>
c51fbdf
to
6de60a5
Compare
Is |
looks like an outdated configuration name, let me correct it. |
Signed-off-by: Shi Chen [email protected]
requires eclipse-jdtls/eclipse.jdt.ls#2279
add new preference java.compile.nullAnalysis.mode.