Instances of RepoPool classes used in @ UserRepository@ and JDBCRepository forcing synchronized access even if caching is disabled due to an instance of RepoPool being wrapped by @Collections.synchronizedMap()@.
Synchronization should be moved inside this RepoPool class as instance of SizedCache needs to be synchronized and we may synchronize required methods manually with usage of synchronized (cache) { } block.
Instances of
RepoPool
classes used in @ UserRepository@ andJDBCRepository
forcing synchronized access even if caching is disabled due to an instance ofRepoPool
being wrapped by @Collections.synchronizedMap()@.Synchronization should be moved inside this
RepoPool
class as instance ofSizedCache
needs to be synchronized and we may synchronize required methods manually with usage ofsynchronized (cache) { }
block.