Skip to content

Commit

Permalink
mockito#2921 add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jörg von Frantzius committed Mar 7, 2023
1 parent 5b414c4 commit 02c7d3e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ private boolean recurseOnTypeArguments(
}
}
if (variableIndex != -1) {
// now test whether actual type with same index is compatible, e.g. for
// class ClassUnderTest<T1, T2> {..}
// T1 would be the String in
// ClassUnderTest<String, Integer> underTest = ..
isCompatible &= isCompatibleTypes(injectMocksFieldTypeParameters[variableIndex], actualTypeArgument2, injectMocksField);
} else {
isCompatible = false;
Expand Down

0 comments on commit 02c7d3e

Please sign in to comment.