The Java programming language does not support collection literals. Adding this feature to the Java platform was proposed in 2013 and revisited in 2016, but it only gained exposure as a research proposal, not for future implementation.
Of course, that is until Java 9 is released. Implementing collection literals in the Java programming language is reported to have the following benefits:
- Performance improvement
- Increased safety
- Reduction of boilerplate code
Even without being part of the research group, our ...