Skip to content

Commit

Permalink
Remove eclipse specific classes in ExtensionMethod patch signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 authored and rspilker committed Apr 14, 2023
1 parent b80ff39 commit 3f51b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import lombok.experimental.ExtensionMethod;
import lombok.permit.Permit;

import org.eclipse.jdt.core.search.SearchPattern;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.ast.Annotation;
import org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess;
Expand Down Expand Up @@ -381,7 +380,7 @@ public static TypeBinding resolveType(TypeBinding resolvedType, MessageSend meth
return resolvedType;
}

public static SearchPattern modifyMethodPattern(SearchPattern original) {
public static Object modifyMethodPattern(Object original) {
if (original != null && original instanceof MethodPattern) {
MethodPattern methodPattern = (MethodPattern) original;
if (methodPattern.parameterCount > 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/eclipseAgent/lombok/launch/PatchFixesHider.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public static final class ExtensionMethod {
INVALID_METHOD = Util.findMethod(shadowed, "invalidMethod", PROBLEM_REPORTER_SIG, MESSAGE_SEND_SIG, METHOD_BINDING_SIG);
INVALID_METHOD2 = Util.findMethod(shadowed, "invalidMethod", PROBLEM_REPORTER_SIG, MESSAGE_SEND_SIG, METHOD_BINDING_SIG, SCOPE_SIG);
NON_STATIC_ACCESS_TO_STATIC_METHOD = Util.findMethod(shadowed, "nonStaticAccessToStaticMethod", PROBLEM_REPORTER_SIG, AST_NODE_SIG, METHOD_BINDING_SIG, MESSAGE_SEND_SIG);
MODIFY_METHOD_PATTERN = Util.findMethod(shadowed, "modifyMethodPattern", "org.eclipse.jdt.core.search.SearchPattern");
MODIFY_METHOD_PATTERN = Util.findMethod(shadowed, "modifyMethodPattern", Object.class);
}

public static Object resolveType(Object resolvedType, Object methodCall, Object scope) {
Expand Down

0 comments on commit 3f51b25

Please sign in to comment.