-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare mockito for the 'wildcard-variables' language feature.
We generally preserve positional parameter names, but in the case of wildcard parameters, we must rename them. We cannot override a wildcard parameter with a wildcard parameter, since we do use the parameter (we pass it to `super.noSuchMethod` in a call to `Invocation.method`). This change introduces some renaming logic for wildcard parameters, using new method-unique parameter names. PiperOrigin-RevId: 696158750
- Loading branch information
1 parent
f72791d
commit 67c3237
Showing
2 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters