Compiler can't stop complaining with this call :
EasyMock.anyObject(List.class)
I tried to specify list's type
EasyMock.anyObject(List<MyType>.class)
but it doesn't seems to be an option (anyway, it is stupid since java will erase the type during the compilation)
Is there a clean way (@SuppressWarning is not a clean way IMO) to remove this warning?
Thank you