Skip to content

Remove deprecated API#881

Merged
jonahgraham merged 9 commits intoeclipse-lsp4j:mainfrom
jonahgraham:Remove-deprecated-API
Nov 20, 2025
Merged

Remove deprecated API#881
jonahgraham merged 9 commits intoeclipse-lsp4j:mainfrom
jonahgraham:Remove-deprecated-API

Conversation

@jonahgraham
Copy link
Contributor

Fixes #874

Individual commits fix the sub-issues of #874

@jonahgraham jonahgraham mentioned this pull request Jan 31, 2025
Copy link
Contributor

@pisv pisv left a comment

Choose a reason for hiding this comment

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

LGTM, apart from Either.java having some unused imports left after removing the deprecated methods there.

@jonahgraham jonahgraham force-pushed the Remove-deprecated-API branch from d943a8d to de1ad7f Compare November 19, 2025 16:30
Instead use TypeUtils helper methods

Fixes eclipse-lsp4j#877
@jonahgraham jonahgraham force-pushed the Remove-deprecated-API branch from de1ad7f to 12d5475 Compare November 19, 2025 16:31
@jonahgraham
Copy link
Contributor Author

The push of commit de1ad7f was simply rebasing.

The push of commit 12d5475 resolved "apart from Either.java having some unused imports left after removing the deprecated methods there." from #881 (review)

These were the old way of accessing factories.

Fixes eclipse-lsp4j#878
This was a misspelling and is replaced by ServerNotInitialized

Fixes eclipse-lsp4j#879
Mitigation: either upgrade to Jakarta version or remain on older
version of LSP4J.

Fixes eclipse-lsp4j#647
@jonahgraham jonahgraham force-pushed the Remove-deprecated-API branch from 12d5475 to 8b5ed81 Compare November 19, 2025 17:17
@jonahgraham
Copy link
Contributor Author

@pisv I think this is ready to review + merge, there are no @Deprecated annotations left in the code base which is a good place to start 1.0

@jonahgraham jonahgraham added this to the 1.0.0 milestone Nov 19, 2025
@jonahgraham jonahgraham self-assigned this Nov 19, 2025
Copy link
Contributor

@pisv pisv left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for cleaning it all up! 👍

Nothing to suggest, except of adding a bunch of pesky <p> tags in JavaDoc comments.

Also, it is very nice to see only one warning left in the LSP4J workspace:

The import java.util.Objects is never used DSPLauncherTest.java /org.eclipse.lsp4j.debug/src/test/java/org/eclipse/lsp4j/debug/test line 21

(I don't think this warning is related to this PR, although it would be nice to fix it.)

The LSP4J project does not use standard Deprecated annotation when
implementing LSP/DAP specification as it leads to unresolvable
deprecation warnings. The standard Deprecated annotation should
be used in LSP4J for LSP4J's own API that is not directly
implementing the protocol specification.

This commit introduces `@ProtocolDeprecated` as an annotation
to make it easier for API consumers to identify areas that the
underlying LSP/DAP have deprecated.

Fixes eclipse-lsp4j#895
use ConcurrentMessageProcessor.beginProcessing instead

Fixes eclipse-lsp4j#922
@jonahgraham jonahgraham force-pushed the Remove-deprecated-API branch from 54796a6 to 4b3241d Compare November 19, 2025 20:53
@jonahgraham
Copy link
Contributor Author

Nothing to suggest, except of adding a bunch of pesky <p> tags in JavaDoc comments.

Applied

Also, it is very nice to see only one warning left in the LSP4J workspace:

The import java.util.Objects is never used DSPLauncherTest.java /org.eclipse.lsp4j.debug/src/test/java/org/eclipse/lsp4j/debug/test line 21

(I don't think this warning is related to this PR, although it would be nice to fix it.)

I have a few hundred warnings still in LSP4J, including that one - lets continue convo here: #923 - in particular, I assume your dev environment is different than mine.

@jonahgraham jonahgraham merged commit 1095fcf into eclipse-lsp4j:main Nov 20, 2025
6 checks passed
@jonahgraham jonahgraham deleted the Remove-deprecated-API branch November 20, 2025 13:30
jonahgraham added a commit to jonahgraham/lsp4j that referenced this pull request Nov 23, 2025
When the websocket bundle was removed in
eclipse-lsp4j#881 the about.html
in the resources directory was left in the git repo.

This commit removes it.
jonahgraham added a commit that referenced this pull request Nov 23, 2025
When the websocket bundle was removed in
#881 the about.html
in the resources directory was left in the git repo.

This commit removes it.
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.

Remove deprecated API

2 participants