Actually the community is not in agreement that it should be avoided, and in
fact it should be used in many cases.
The reason for this pattern in most of OFBiz is not to guarantee a single
instance of an object but to improve performance, and the synchronized block
with no if block kind of def
Thank you. DCL has been discussed in the past and the community is in
agreement that it is a pattern to avoid.
If you see DCL code in OFBiz, it is because no one has taken the time to
fix it.
-Adrian
On 1/9/2013 1:04 PM, Sumit Pandit wrote:
As per Fortyfy analysis report - "Double-checked l