We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove type parameter <T> from Mockito#clearInvocations.
<T>
I don't see any usage of the type parameter <T> but just got a warning of unchecked generic array creation.
final var mock = Mockito.mock(Some.class); // ... Mockito.clearInvocation(mock); // unchecked generic array creation
Moreover, why don't we give a shot like this?
public static void clearInvocations(Object mock, Object... otherMocks) { MOCKITO_CORE.clearInvocations(mock); for (Object otherMock : otherMocks) { MOCKITO_CORE.clearInvocations(otherMock); } }
The text was updated successfully, but these errors were encountered:
Fixes mockito#3215 : Remove type parameter from Mockito#clearInvocations
7df11ce
No branches or pull requests
Remove type parameter
<T>
from Mockito#clearInvocations.I don't see any usage of the type parameter
<T>
but just got a warning of unchecked generic array creation.Moreover, why don't we give a shot like this?
The text was updated successfully, but these errors were encountered: