[ https://issues.apache.org/jira/browse/ONAMI-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Mazursky closed ONAMI-94. --------------------------------- > Refactor locking in ConcurrentLazySingletonScopeImpl > ---------------------------------------------------- > > Key: ONAMI-94 > URL: https://issues.apache.org/jira/browse/ONAMI-94 > Project: Apache Onami > Issue Type: Improvement > Components: scopes > Affects Versions: scopes-1.0.0 > Reporter: Mikhail Mazursky > Assignee: Jordan Zimmerman > Priority: Minor > > - getLock() should be called just before "try", not inside the block - this > will also allow to remove null check from releaseLock(); > - LockRecord instances may be used as lock objects - no need to create > separate objects for that because LockRecord instances are not exposed. -- This message was sent by Atlassian JIRA (v6.1.5#6160)