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

reduce guava code usage #886

Closed
wants to merge 1 commit into from
Closed

Conversation

sebthom
Copy link
Contributor

@sebthom sebthom commented Dec 23, 2023

This PR addresses #865 and removes most usages of the guava library.

The only location left is at https://github.com/eclipse/lsp4e/blob/680b76572d29eecc0d3ce0047930d2cacf436424/org.eclipse.lsp4e/src/org/eclipse/lsp4e/outline/SymbolsLabelProvider.java#L185-L227 where com.google.common.collect.RangeMap is used.

I cannot really wrap my head around that code introduced by @mickaelistria with ae5a762. Maybe he is able to change the implementation to not require guava.

@mickaelistria
Copy link
Contributor

The change here doesn't make things simpler. So I wouldn't merge it yet if it's not enabling us to fully remove guava.
The getMaxServerity is a way to get the highest severity that affects a range: LSP diagnostics are attached to ranges, some can be overlapping, and the RangeMap allows to easily access the diagnostics for a range, including the included or overlapping ranges. I'm not aware of a better structure for that in standard JDK.

@mickaelistria
Copy link
Contributor

The initial target branch master was deleted and replaced by main, so this PR got closed automatically. If this is still relevant, please re-create this PR targetting the main branch.

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.

3 participants