Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Oct 12, 2024
1 parent a1e04e0 commit a4c309f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
*******************************************************************************/
package org.eclipse.jdt.internal.common;

import java.util.AbstractMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.function.BiPredicate;
import java.util.function.Function;
Expand Down Expand Up @@ -1197,7 +1199,9 @@ public ASTProcessor<E, V, T> callMethodInvocationVisitor(
*/
public ASTProcessor<E, V, T> callMethodInvocationVisitor(String methodname,
BiPredicate<ASTNode, E> bs) {
nodetypelist.put(VisitorEnum.MethodInvocation, new NodeHolder(bs, null, methodname));
nodetypelist.put(VisitorEnum.MethodInvocation, new NodeHolder(bs, null, Map.ofEntries(
new AbstractMap.SimpleEntry<>(HelperVisitor.METHODNAME, methodname)
)));
return this;
}

Expand All @@ -1209,7 +1213,9 @@ public ASTProcessor<E, V, T> callMethodInvocationVisitor(String methodname,
*/
public ASTProcessor<E, V, T> callMethodInvocationVisitor(String methodname,
BiPredicate<ASTNode, E> bs, Function<ASTNode, ASTNode> navigate) {
nodetypelist.put(VisitorEnum.MethodInvocation, new NodeHolder(bs, navigate, methodname));
nodetypelist.put(VisitorEnum.MethodInvocation, new NodeHolder(bs, navigate, Map.ofEntries(
new AbstractMap.SimpleEntry<>(HelperVisitor.METHODNAME, methodname)
)));
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,9 @@ public BiPredicate<? extends ASTNode, E> addMethodInvocation(BiPredicate<MethodI
*/
public BiPredicate<? extends ASTNode, E> addMethodInvocation(String methodname,
BiPredicate<MethodInvocation, E> bs) {
this.predicatedata.put(VisitorEnum.MethodInvocation, methodname);
this.predicatedata.put(VisitorEnum.MethodInvocation, Map.ofEntries(
new AbstractMap.SimpleEntry<>(METHODNAME, methodname)
));
return predicatemap.put(VisitorEnum.MethodInvocation, bs);
}

Expand Down

0 comments on commit a4c309f

Please sign in to comment.