diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2020-12-05 01:34:33 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-12-22 10:53:01 +0100 |
commit | 3482e501348a6b38cdf3feb8c313102552ccaced (patch) | |
tree | bb3701d9033ff1b52531d7fb277e87d4a339148e | |
parent | 13e0ffbd3d87fba58e0739056810c51cb3e93b9b (diff) | |
download | jgit-3482e501348a6b38cdf3feb8c313102552ccaced.tar.gz jgit-3482e501348a6b38cdf3feb8c313102552ccaced.zip |
[spotbugs] Fix incorrect lazy initialization in SystemReader
This fixes two warnings of type LI_LAZY_INIT_STATIC.
Change-Id: I26a7a48aed9d0a0547e908a56b7014a7620fadd8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java index 447f417e7e..54fd539f67 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java @@ -56,9 +56,9 @@ public abstract class SystemReader { private static final SystemReader DEFAULT; - private static Boolean isMacOS; + private static volatile Boolean isMacOS; - private static Boolean isWindows; + private static volatile Boolean isWindows; static { SystemReader r = new Default(); |