Skip to content

Commit

Permalink
Avoid super call in favour of dominant call.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jan 23, 2025
1 parent d2f48e8 commit 9615143
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loa
Implementation.SpecialMethodInvocation specialMethodInvocation;
TypeDescription typeDescription = annotation.getValue(DEFAULT_TARGET).resolve(TypeDescription.class);
if (typeDescription.represents(void.class) && !annotation.getValue(DEFAULT_METHOD).resolve(Boolean.class)) {
specialMethodInvocation = implementationTarget.invokeSuper(source.asSignatureToken()).withCheckedCompatibilityTo(source.asTypeToken());
specialMethodInvocation = implementationTarget.invokeDominant(source.asSignatureToken()).withCheckedCompatibilityTo(source.asTypeToken());
} else {
specialMethodInvocation = (typeDescription.represents(void.class)
? DefaultMethodLocator.Implicit.INSTANCE
Expand Down

0 comments on commit 9615143

Please sign in to comment.