MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/ma0y6b/java_lambdas_can_deadlock_parallel_class/grsoe1h/?context=3
r/java • u/fredoverflow • Mar 21 '21
46 comments sorted by
View all comments
22
Putting anything non-trivial into static initialization is asking for a trouble.
3 u/dpash Mar 22 '21 I generally dislike them. Doubly so if it's the old collection hack to reduce verbosity.A lazy evaluation wrapper is nicer.
3
I generally dislike them. Doubly so if it's the old collection hack to reduce verbosity.
A lazy evaluation wrapper is nicer.
22
u/sweetno Mar 21 '21
Putting anything non-trivial into static initialization is asking for a trouble.