Skip to content

Commit 3f51b25

Browse files
Rawi01rspilker
authored andcommitted
Remove eclipse specific classes in ExtensionMethod patch signatures
1 parent b80ff39 commit 3f51b25

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/eclipseAgent/lombok/eclipse/agent/PatchExtensionMethod.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import lombok.experimental.ExtensionMethod;
4444
import lombok.permit.Permit;
4545

46-
import org.eclipse.jdt.core.search.SearchPattern;
4746
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
4847
import org.eclipse.jdt.internal.compiler.ast.Annotation;
4948
import org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess;
@@ -381,7 +380,7 @@ public static TypeBinding resolveType(TypeBinding resolvedType, MessageSend meth
381380
return resolvedType;
382381
}
383382

384-
public static SearchPattern modifyMethodPattern(SearchPattern original) {
383+
public static Object modifyMethodPattern(Object original) {
385384
if (original != null && original instanceof MethodPattern) {
386385
MethodPattern methodPattern = (MethodPattern) original;
387386
if (methodPattern.parameterCount > 0) {

src/eclipseAgent/lombok/launch/PatchFixesHider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public static final class ExtensionMethod {
353353
INVALID_METHOD = Util.findMethod(shadowed, "invalidMethod", PROBLEM_REPORTER_SIG, MESSAGE_SEND_SIG, METHOD_BINDING_SIG);
354354
INVALID_METHOD2 = Util.findMethod(shadowed, "invalidMethod", PROBLEM_REPORTER_SIG, MESSAGE_SEND_SIG, METHOD_BINDING_SIG, SCOPE_SIG);
355355
NON_STATIC_ACCESS_TO_STATIC_METHOD = Util.findMethod(shadowed, "nonStaticAccessToStaticMethod", PROBLEM_REPORTER_SIG, AST_NODE_SIG, METHOD_BINDING_SIG, MESSAGE_SEND_SIG);
356-
MODIFY_METHOD_PATTERN = Util.findMethod(shadowed, "modifyMethodPattern", "org.eclipse.jdt.core.search.SearchPattern");
356+
MODIFY_METHOD_PATTERN = Util.findMethod(shadowed, "modifyMethodPattern", Object.class);
357357
}
358358

359359
public static Object resolveType(Object resolvedType, Object methodCall, Object scope) {

0 commit comments

Comments
 (0)