the compiler can't guarantee that C1 is compatible with T, which results in the warning

--- Update ---

check this https://waytojava.com/java/generics