7 ms·
Java doesn’t permit that. You must specify covariant or contravariant type parameters with <? extends T> or <? super T>.
by jkhdigital 4d ago
Java doesn’t permit that. You must specify covariant or contravariant type parameters with <? extends T> or <? super T>.
- kccqzy 4d agoThat doesn’t apply to plain old arrays, which were in the language before the designers actually collaborated with type theory experts.