Skip to content

Commit

Permalink
Add dummy classes for xtext @pure and ToStringBuilder to prevent
Browse files Browse the repository at this point in the history
ClassNotFoundExceptions while debugging.  See
eclipse-lsp4j/lsp4j#494 for context.

[Bug]
  • Loading branch information
lemmy committed Jan 20, 2021
1 parent f88a2a2 commit f049e12
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.eclipse.xtext.xbase.lib;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Documented
@Retention(RUNTIME)
@Target({ METHOD, CONSTRUCTOR })
public @interface Pure {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.eclipse.xtext.xbase.lib.util;

public class ToStringBuilder {

public ToStringBuilder(Object instance) {
}

public ToStringBuilder add(Object value) {
return this;
}

public ToStringBuilder add(String fieldName, Object value) {
return this;
}
}

0 comments on commit f049e12

Please sign in to comment.