Skip to content

Commit

Permalink
refact: remove deprecated DocumentSymbolWithFile class
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jan 16, 2025
1 parent 9834656 commit 1a442b8
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,11 @@ public class SymbolsModel {

private @Nullable URI uri;

/**
* @deprecated use {@link DocumentSymbolWithURI}
*/
@Deprecated(since = "0.17.0", forRemoval = true)
public static class DocumentSymbolWithFile {
public final DocumentSymbol symbol;
public final URI uri;

public DocumentSymbolWithFile(DocumentSymbol symbol, URI uri) {
this.symbol = symbol;
this.uri = uri;
}

@Override
public boolean equals(@Nullable Object obj) {
return obj instanceof DocumentSymbolWithFile other && //
Objects.equals(this.symbol, other.symbol) && //
Objects.equals(this.uri, other.uri);
}

@Override
public int hashCode() {
return Objects.hash(this.uri, this.symbol);
}
}

public static class DocumentSymbolWithURI extends DocumentSymbolWithFile {
public static class DocumentSymbolWithURI {
public final DocumentSymbol symbol;
public final URI uri;

public DocumentSymbolWithURI(DocumentSymbol symbol, URI uri) {
super(symbol, uri);
this.symbol = symbol;
this.uri = uri;
}
Expand Down

0 comments on commit 1a442b8

Please sign in to comment.