Before version 6.2.0 this mock statement worked perfectly fine
whenever(personRepository.saveAndFlush(any())).thenReturn(person)
....
Now since 6.2.0 we get
Cannot infer type for type parameter 'T'. Specify it explicitly.
which can be fixed by setting the type excplitly
whenever(personRepository.saveAndFlush(any())).thenReturn(person)
...
Is this change intentionally ? Because at first sight i didn't see in the release notes.
And it breaks a lot of tests on our end.
Before version 6.2.0 this mock statement worked perfectly fine
whenever(personRepository.saveAndFlush(any())).thenReturn(person)
....
Now since 6.2.0 we get
Cannot infer type for type parameter 'T'. Specify it explicitly.
which can be fixed by setting the type excplitly
whenever(personRepository.saveAndFlush(any())).thenReturn(person)
...
Is this change intentionally ? Because at first sight i didn't see in the release notes.
And it breaks a lot of tests on our end.