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

Remove xtend.lib dependency #1

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions org.eclipse.lemminx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@
</exclusion>
</exclusions>
</dependency>
<!-- FIXME this should not be required -->
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.33.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j.jsonrpc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

import java.util.List;

import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;
import org.eclipse.lsp4j.jsonrpc.util.ToStringBuilder;

/**
* Specific capabilities for the `CodeLensKind`.
Expand Down Expand Up @@ -48,7 +47,6 @@ public CodeLensKindCapabilities(final List<String> valueSet) {
* If this property is not present the client only supports the codeLens kinds
* from `File` to `Array` as defined in the initial version of the protocol.
*/
@Pure
public List<String> getValueSet() {
return this.valueSet;
}
Expand All @@ -66,15 +64,13 @@ public void setValueSet(final List<String> valueSet) {
}

@Override
@Pure
public String toString() {
ToStringBuilder b = new ToStringBuilder(this);
b.add("valueSet", this.valueSet);
return b.toString();
}

@Override
@Pure
public boolean equals(final Object obj) {
if (this == obj) {
return true;
Expand All @@ -97,7 +93,6 @@ public boolean equals(final Object obj) {
}

@Override
@Pure
public int hashCode() {
return 31 * 1 + ((this.valueSet == null) ? 0 : this.valueSet.hashCode());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
package org.eclipse.lemminx.client;

import org.eclipse.lsp4j.DynamicRegistrationCapabilities;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;
import org.eclipse.lsp4j.jsonrpc.util.ToStringBuilder;

/**
* Extended capabilities specific to the `textDocument/codeLens` request. This capability doesn't belong to LSP specification. See proposal at
Expand Down Expand Up @@ -52,7 +51,6 @@ public ExtendedCodeLensCapabilities(final CodeLensKindCapabilities codeLensKind,
* Specific capabilities for the `CodeLensKind` in the `textDocument/codeLens`
* request.
*/
@Pure
public CodeLensKindCapabilities getCodeLensKind() {
return this.codeLensKind;
}
Expand All @@ -66,7 +64,6 @@ public void setCodeLensKind(final CodeLensKindCapabilities codeLensKind) {
}

@Override
@Pure
public String toString() {
ToStringBuilder b = new ToStringBuilder(this);
b.add("codeLensKind", this.codeLensKind);
Expand All @@ -75,7 +72,6 @@ public String toString() {
}

@Override
@Pure
public boolean equals(final Object obj) {
if (this == obj) {
return true;
Expand All @@ -101,7 +97,6 @@ public boolean equals(final Object obj) {
}

@Override
@Pure
public int hashCode() {
return 31 * super.hashCode() + ((this.codeLensKind == null) ? 0 : this.codeLensKind.hashCode());
}
Expand Down