Skip to content

Commit

Permalink
Remove xtend.lib dependency (#1630)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Zarnekow <[email protected]>
Co-authored-by: Sebastian Zarnekow <[email protected]>
  • Loading branch information
laeubi and szarnekow authored Nov 12, 2024
1 parent 244f248 commit 5421ff5
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 12 deletions.
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.lemminx.utils.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 @@ -11,9 +11,8 @@
*******************************************************************************/
package org.eclipse.lemminx.client;

import org.eclipse.lemminx.utils.ToStringBuilder;
import org.eclipse.lsp4j.DynamicRegistrationCapabilities;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.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
Loading

0 comments on commit 5421ff5

Please sign in to comment.