Elye Elye - 1 year ago 109
Java Question

Unit Test Any: Unchecked assignment from 'java.util.List' to 'java.util.List<java.lang.Long>'. How to fix?

In my unit test, I am verifying a function that get List variable


Hence it complains

Unchecked assignment from 'java.util.List' to 'java.util.List<java.lang.Long>'

I can't change to


How could I fix it?

Answer Source

That's how you can fix it:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download