Lazy-j: Simple lazy initialization library for Java (github.com) 2 points by whoisthemachine 8y ago ↗ HN
[–] karmakaze 8y ago ↗ The 'holder pattern' lazy initialization is more compact although it depends on understanding the JLS/JVM why it works.https://en.wikipedia.org/wiki/Initialization-on-demand_holde... [–] whoisthemachine 8y ago ↗ Yes I'm aware of it - but I do not prefer the method for the reason you mention.
[–] whoisthemachine 8y ago ↗ Yes I'm aware of it - but I do not prefer the method for the reason you mention.
2 comments
[ 34.9 ms ] story [ 55.1 ms ] threadhttps://en.wikipedia.org/wiki/Initialization-on-demand_holde...