Skip to content

Commit

Permalink
Methods are not ambiguous if their argument size differs
Browse files Browse the repository at this point in the history
Fixes #427
  • Loading branch information
timtebeek committed Jan 11, 2025
1 parent 871554c commit 9fa1958
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private boolean methodArgumentRequiresCast(J.Lambda lambda, MethodCall method, i
}

private boolean areMethodsAmbiguous(JavaType.@Nullable Method m1, JavaType.@Nullable Method m2) {
if (m1 == null || m2 == null) {
if (m1 == null || m2 == null || m1.getParameterTypes().size() != m2.getParameterTypes().size()) {
return false;
}
if (m1 == m2) {
Expand Down

0 comments on commit 9fa1958

Please sign in to comment.