]> source.dussan.org Git - jgit.git/commit
RepositoryCache: declare schedulerLock final 25/174125/2
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 28 Dec 2020 01:21:17 +0000 (02:21 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 4 Jan 2021 00:59:35 +0000 (19:59 -0500)
commit74d5a1c1724f968eeaa00afc0b25c0717cb32018
tree58884262c1c66e5a187757382f51d700b9f55b04
parentd9143287b778deba259cdd9d7db0a6aaba558eb2
RepositoryCache: declare schedulerLock final

This fixes errorprone error [SynchronizeOnNonFinalField]: Synchronizing
on non-final fields is not safe: if the field is ever updated, different
threads may end up locking on different objects.

Change-Id: I42fe5bde825151693e2da2d5b6cd6e1d34038dbc
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java