The inspector complains if you lock an object via a local reference. I
am curious why the IntelliJ team consider that a wicked or unusual
thing to do.
It seems to me the reference is irrelevant. The lock is on the object
pointed to, so it should not matter how you reference it.
I am not complaining about this. I just want to understand the
Roedy Green Canadian Mind Products
If you tell a computer the same fact in more than one place, unless you have an automated mechanism to ensure they stay in sync, the versions of the fact will eventually get out of sync.