import java.util.ArrayList;
import java.util.List;

class Animal{}
class Dog extends Animal{}
class Cat extends Animal{}

class Adapter {
    public void setData(List<Animal> animals){
    }
}

public class Temp{
    public static void main(String[] args) {

        List<Cat> cats = new ArrayList<>();
        cats.add(new Cat());
        cats.add(new Cat());

        Adapter adapter = new Adapter();
        adapter.setData(cats);


    }
}
@@ -160,16 +160,26 @@
 ta(List%3C
+? extends 
 Animal%3E 

fix the previous error