Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sea6ear
· 9y ago · 0 comments
List<String> list = new ArrayList<>(){ };
Comments
[–]
ucho
9y ago
Yeah, 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.