Skip to content

Commit

Permalink
Fix lambda ambiguity in SimpleLensLirRewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Aug 16, 2023
1 parent 56aa010 commit 85a0c7b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.ToIntFunction;

public class SimpleLensLirRewriter<EV> extends LirParsedInstructionCallback<EV> {

Expand Down Expand Up @@ -241,7 +242,7 @@ private LirCode<EV> rewriteInstructionsWithInvokeTypeChanges(LirCode<EV> code) {
constantIndex =
methodIndices.computeIfAbsent(
result.getReference(),
ref -> {
(ToIntFunction<DexMethod>) ref -> {
methodsToAppend.add(ref);
return rewrittenConstants.length + methodsToAppend.size() - 1;
});
Expand Down

0 comments on commit 85a0c7b

Please sign in to comment.