Skip to content
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

refact: improve null analysis #1095

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

sebthom
Copy link
Contributor

@sebthom sebthom commented Sep 4, 2024

This PR bumps no-npe to version 1.1.0 (which contains more refined external null annotation) and applies all necessary code changes to satisfy null analysis checks by the Eclipse compiler.

@@ -279,15 +279,15 @@ private static List<ICompletionProposal> toProposals(IDocument document, int off
public IContextInformation @Nullable [] computeContextInformation(ITextViewer viewer, int offset) {
IDocument document = viewer.getDocument();
if (document == null) {
return new IContextInformation[] { /* TODO? show error in context information */ };
return null; /* TODO? show error in context information */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this changes to return null seem to make the code more inline with the documentation of the method we are overriding, and I think it would be nice to have a separate PR for them that we can merge independently.

@rubenporras
Copy link
Contributor

@sebthom , if you like to do a new PR with the three changes which are clear and not just flipping annotations, I think that would be good.

@sebthom
Copy link
Contributor Author

sebthom commented Sep 4, 2024

@rubenporras we need a new approval from IP team, see https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/16066

I hope that happens soon.

@sebthom
Copy link
Contributor Author

sebthom commented Sep 4, 2024

@sebthom : 6,615 [ERROR] Failed to execute goal org.eclipse.dash:license-tool-plugin:1.1.1-SNAPSHOT:license-check (default-cli) on project parent: Some dependencies must be vetted. -> [Help 1]

Yes I already opened a ticket. see my previous ocmment.

@rubenporras
Copy link
Contributor

@sebthom : 6,615 [ERROR] Failed to execute goal org.eclipse.dash:license-tool-plugin:1.1.1-SNAPSHOT:license-check (default-cli) on project parent: Some dependencies must be vetted. -> [Help 1]

Yes I already opened a ticket. see my previous ocmment.

Sorry, I cross-posted.

This PR bumps no-npe to version 1.1.0 (which contains more refined
external null annotation) and applies all necessary code changes to
satisfy null analysis checks by the Eclipse compiler.
@sebthom sebthom merged commit 618a146 into eclipse-lsp4e:main Sep 4, 2024
5 of 6 checks passed
@sebthom sebthom deleted the null-safety branch September 4, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants