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