Collection<Foo> values = ... Foo[] array = values.toArray(Foo[]::new);
There are many situations where the code I implemented could have been far cleaner with reified generics.
There are many situations where the code I implemented could have been far cleaner with reified generics.