2 ms·
To be fair, raw types like List are really deprecated and only exist in order to interface with legacy APIs.
by Sharlin 9y ago
To be fair, raw types like List are really deprecated and only exist in order to interface with legacy APIs.
- tehlike 9y agoJava? In a lot of cases you still need them. Anything that touches reflections is in that category, plenty of di/ioc systems, or mappers, etc relies on them.
- TheCoelacanth 9y agoCan you give an example? Most of the time when reflection is needed I see something like this instead of just a plain list type. <T> void foo(List<T> list, Class<? extends T> type) { ... }