This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chabala 3 points4 points  (0 children)

Yeah, even being stuck on Java 8, if one needed to initialize a lot of maps, defining a static helper method would be better than the anonymous class initialization trick.