bmhm commented on pull request #218: URL: https://github.com/apache/shiro/pull/218#issuecomment-621778682
There could still be a race-condition on updating the variables. The volatile keyword will fix the read. If this is not enough for every use case (e.g. hold Threads while it is updated), we could go for `AtomicReference` - but that is probably not needed here. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
