3 ms·
Reflection is not required. I actually had the code, somehow got deleted List myList = new ArrayList<String>(); myList.add(new Object()); this would compile.
by tehlike 9y ago
Reflection is not required. I actually had the code, somehow got deleted
List myList = new ArrayList<String>();
myList.add(new Object());
this would compile.
- ygra 9y agoAh, I missed the missing generics on the declaration. Sorry.