maniksurtani/infinispan — comment on commit b964b31d3f4ef8298464dc5ab80660fd80ccef33
File: core/src/main/java/org/infinispan/transaction/TransactionTable.java line 133
By maniksurtani:

It's just that it isn't needed if we're not clustered. So I'd rather not initialise the field. Same with the CHMaps, and the CHMaps can be initialised with concurrency level from configs as well so hard to make them final.

The lock not being final isn't so bad - we're not synchronizing on the object ref or anything. But yes, we need to make sure it is only ever written to once.