konveyor / konveyor/java-analyzer-bundle
SymbolInformation is deprecated
- Dominant language
- Java
- Stars
- 2
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
## Issue
The following class used to populate the response is deprecated within the LSP specification - https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ and by consequence the code should be reviewed
```
package org.eclipse.lsp4j;
import com.google.gson.annotations.JsonAdapter;
import java.util.List;
import org.eclipse.lsp4j.adapters.SymbolInformationTypeAdapter;
import org.eclipse.lsp4j.jsonrpc.util.Preconditions;
import org.eclipse.lsp4j.jsonrpc.util.ToStringBuilder;
import org.eclipse.lsp4j.jsonrpc.validation.NonNull;
/**
* Represents information about programming constructs like variables, classes, interfaces etc.
*
* Deprecated Use {@link DocumentSymbol} or {@link WorkspaceSymbol} instead if supported.
*
* This class is deprecated in the LSP specification. It is not annotated with Deprecated
* annotation because the {@link org.eclipse.lsp4j.services.TextDocumentService#documentSymbol(DocumentSymbolParams)}
* method requires it and causes deprecated warning in the code of all users of that API.
*/
@JsonAdapter(SymbolInformationTypeAdapter.Factory.class)
@SuppressWarnings("all")
public class SymbolInformation {
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.