summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.apache/src/org
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2016-10-18 13:51:27 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2016-10-18 14:15:53 +0900
commitbdf3e43d7652e8fbfbf3416d8b8df1c6dbddbc14 (patch)
tree3021ab8ef1088d6521dc1db712f142041055fb11 /org.eclipse.jgit.http.apache/src/org
parente9107e853f290677eab844ac8d09db0891bdd20e (diff)
downloadjgit-bdf3e43d7652e8fbfbf3416d8b8df1c6dbddbc14.tar.gz
jgit-bdf3e43d7652e8fbfbf3416d8b8df1c6dbddbc14.zip
FS: Fix lazy initialization of non-volatile static field
The 'factory' field is lazy initialized in the detect() method. According to FindBugs: Because the compiler or processor may reorder instructions, threads are not guaranteed to see a completely initialized object, if the method can be called by multiple threads. Fix this by declaring the member as 'volatile'. Change-Id: Ib32663bb28c9564584256e01f625b4e7875e6223 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.apache/src/org')
0 files changed, 0 insertions, 0 deletions