3 ms·
List<String> list = new ArrayList<>(){ };
by sea6ear 9y ago
List<String> list = new ArrayList<>(){ };
- ucho 9y agoYeah, worst example ever. They should make it harder to make inner anonymous classes, not easier. When such code is used inside JEE/CDI/Spring Beans it leads to some annoying leaks or issues with serialization.